2 * uglydate - convert a time stamp to something barely readable
3 * The string returned is 37 characters long.
9 #include "ntp_unixtime.h"
10 #include "lib_strbuf.h"
11 #include "ntp_stdlib.h"
26 timep = ulfptoa(ts, 6); /* returns max 17 characters */
28 sec = ts->l_ui - JAN_1970;
29 msec = ts->l_uf / 4294967; /* fract / (2**32/1000) */
33 * Probably not a real good thing to do. Oh, well.
45 snprintf(bp, LIB_BUFLENGTH,
46 "%17s %02d:%03d:%02d:%02d:%02d.%03ld", timep, year,
47 tm->tm_yday, tm->tm_hour, tm->tm_min, tm->tm_sec,