summaryrefslogtreecommitdiff
path: root/src/libstddjb/localtmn_fmt.c
blob: 00147ecc8878239300653cf5bcf1d5fa4c30ddcc (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 const *l)
{
  char *p = s ;
  p += localtm_fmt(p, &l->tm) ; *p++ = '.' ;
  uint320_fmt(p, l->nano, 9) ; p += 9 ;
  return p - s ;
}