summaryrefslogtreecommitdiff
path: root/src/libstddjb/localtmn_fmt.c
blob: 25d57863798df6a9e22e7084b03871d1e72fb144 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
/* ISC license. */

#include <skalibs/uint32.h>
#include <skalibs/djbtime.h>

size_t localtmn_fmt (char *s, localtmn_t const *l)
{
  char *p = s ;
  p += localtm_fmt(p, &l->tm) ; *p++ = '.' ;
  uint320_fmt(p, l->nano, 9) ; p += 9 ;
  return p - s ;
}