localtmn_fmt.c (249B)
1 /* ISC license. */ 2 3 #include <skalibs/uint32.h> 4 #include <skalibs/djbtime.h> 5 6 size_t localtmn_fmt (char *s, localtmn const *l) 7 { 8 char *p = s ; 9 p += localtm_fmt(p, &l->tm) ; *p++ = '.' ; 10 uint320_fmt(p, l->nano, 9) ; p += 9 ; 11 return p - s ; 12 }