mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
.
This commit is contained in:
parent
17c023bf69
commit
b4aeef458c
38 changed files with 447 additions and 56 deletions
|
@ -61,16 +61,16 @@ strtimestamp( u32 stamp )
|
|||
const char *
|
||||
asctimestamp( u32 stamp )
|
||||
{
|
||||
static char buffer[30];
|
||||
static char buffer[50];
|
||||
struct tm *tp;
|
||||
time_t atime = stamp;
|
||||
|
||||
tp = localtime( &atime );
|
||||
#ifdef HAVE_STRFTIME
|
||||
mem2str( buffer, asctime(tp), DIM(buffer) );
|
||||
#else
|
||||
strftime( buffer, DIM(buffer)-1, "%c", tp );
|
||||
strftime( buffer, DIM(buffer)-1, "%c %Z", tp );
|
||||
buffer[DIM(buffer)-1] = 0;
|
||||
#else
|
||||
mem2str( buffer, asctime(tp), DIM(buffer) );
|
||||
#endif
|
||||
return buffer;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue