src/lib/btime.c
char *bstrutime(char *dt, int maxlen, utime_t utime)
{
   time_t time = (time_t)utime;
   struct tm tm;
   (void)localtime_r(&time, &tm);
   strftime(dt, maxlen, "%Y-%m-%d %H:%M:%S", &tm);
   return dt;
}
/* Unix time to standard time string yyyy-mm-dd hh:mm:ss */
Unix time to standard time string yyyy-mm-dd hh:mm:ss
Unix time to standard time string yyyy - mm - dd hh : mm : ss
char *bstrutime(char *dt, int maxlen, utime_t utime)
{
   time_t time = (time_t)utime;
   struct tm tm;
   (void)localtime_r(&time, &tm);
   strftime(dt, maxlen, "%Y-%m-%d %H:%M:%S", &tm);
   return dt;
}
char * bstrutime ( char * dt , int maxlen , utime_t utime ) { time_t time = ( time_t ) utime ; struct tm tm ; ( void ) localtime_r ( & time , & tm ) ; strftime ( dt , maxlen , " " , & tm ) ; return dt ; }
Unix time to standard time string yyyy-mm-dd hh:mm:ss
Unix time to standard time string yyyy - mm - dd hh : mm : ss