summaryrefslogtreecommitdiff
path: root/src/libstddjb/timestamp_r.c
blob: 4c8ac584a6e7ac5bae9b944044c084f2ece7a327 (plain)
1
2
3
4
5
6
7
8
9
10
/* ISC license. */

#include <skalibs/tai.h>

int timestamp_r (char *s, tain *stamp)
{
  if (!tain_wallclock_read(stamp)) return 0 ;
  timestamp_fmt(s, stamp) ;
  return 1 ;
}