src/lib/btime.c
char *bstrftime(char *dt, int maxlen, utime_t utime)
{
   time_t time = (time_t)utime;
   struct tm tm;

   /* ***FIXME**** the format and localtime_r() should be user configurable */
   (void)localtime_r(&time, &tm);
   strftime(dt, maxlen, "%d-%b-%Y %H:%M", &tm);
   return dt;
}
/* Formatted time for user display: dd-Mon-yyyy hh:mm */
Formatted time for user display: dd-Mon-yyyy hh:mm
Formatted time for user display : dd - Mon - yyyy hh : mm
char *bstrftime(char *dt, int maxlen, utime_t utime)
{
   time_t time = (time_t)utime;
   struct tm tm;
   (void)localtime_r(&time, &tm);
   strftime(dt, maxlen, "%d-%b-%Y %H:%M", &tm);
   return dt;
}
char * bstrftime ( 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 ; }
Formatted time for user display: dd-Mon-yyyy hh:mm
Formatted time for user display : dd - Mon - yyyy hh : mm
/* ***FIXME**** the format and localtime_r() should be user configurable */