mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
g10/ does build again.
This commit is contained in:
parent
11544e7184
commit
fbe4ac37f6
52 changed files with 989 additions and 261 deletions
|
@ -201,7 +201,7 @@ strtimevalue( u32 value )
|
|||
}
|
||||
|
||||
|
||||
/****************
|
||||
/*
|
||||
* Note: this function returns GMT
|
||||
*/
|
||||
const char *
|
||||
|
@ -222,6 +222,32 @@ strtimestamp( u32 stamp )
|
|||
return buffer;
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* Note: this function returns GMT
|
||||
*/
|
||||
const char *
|
||||
isotimestamp (u32 stamp)
|
||||
{
|
||||
static char buffer[25+5];
|
||||
struct tm *tp;
|
||||
time_t atime = stamp;
|
||||
|
||||
if (atime < 0)
|
||||
{
|
||||
strcpy (buffer, "????" "-??" "-??" " " "??" ":" "??" ":" "??");
|
||||
}
|
||||
else
|
||||
{
|
||||
tp = gmtime ( &atime );
|
||||
sprintf (buffer,"%04d-%02d-%02d %02d:%02d:%02d",
|
||||
1900+tp->tm_year, tp->tm_mon+1, tp->tm_mday,
|
||||
tp->tm_hour, tp->tm_min, tp->tm_sec);
|
||||
}
|
||||
return buffer;
|
||||
}
|
||||
|
||||
|
||||
/****************
|
||||
* Note: this function returns local time
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue