1
0
Fork 0
mirror of git://git.gnupg.org/gnupg.git synced 2025-07-02 22:46:30 +02:00

Remove duplicated code.

This commit is contained in:
Werner Koch 2009-03-16 09:44:44 +00:00
parent 91e5544e38
commit 94be7a4341
8 changed files with 35 additions and 25 deletions

View file

@ -26,6 +26,7 @@
#endif
#include "util.h"
#include "i18n.h"
static unsigned long timewarp;
static enum { NORMAL = 0, FROZEN, FUTURE, PAST } timemode;
@ -495,6 +496,16 @@ check_isotime (const gnupg_isotime_t atime)
}
void
dump_isotime (const gnupg_isotime_t t)
{
if (!t || !*t)
log_printf (_("[none]"));
else
log_printf ("%.4s-%.2s-%.2s %.2s:%.2s:%s",
t, t+4, t+6, t+9, t+11, t+13);
}
/* Add SECONDS to ATIME. SECONDS may not be negative and is limited
to about the equivalent of 62 years which should be more then