Add time2rstr to get a more readable string.

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@3663 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Johan Danielsson
1997-10-25 22:39:58 +00:00
parent 68d77a285f
commit 9e278c2772

View File

@@ -85,6 +85,14 @@ time2str(time_t t)
return buf;
}
char *
time2rstr(time_t t)
{
static char buf[128];
strftime(buf, sizeof(buf), "%Y-%m-%d %H:%M:%S UTC", gmtime(&t));
return buf;
}
void
event2string(Event *ev, char **str)
{