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:
@@ -85,6 +85,14 @@ time2str(time_t t)
|
|||||||
return buf;
|
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
|
void
|
||||||
event2string(Event *ev, char **str)
|
event2string(Event *ev, char **str)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user