[BACK]Return to timestamp.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / make

Diff for /src/usr.bin/make/timestamp.c between version 1.2 and 1.3

version 1.2, 2004/04/07 13:11:36 version 1.3, 2007/09/16 12:09:36
Line 52 
Line 52 
     return utime(f, &times);      return utime(f, &times);
 #endif  #endif
 }  }
   
   char *
   time_to_string(TIMESTAMP time)
   {
           struct tm *parts;
           static char buf[128];
           time_t t;
   
           t = timestamp2time_t(time);
   
           parts = localtime(&t);
           strftime(buf, sizeof buf, "%H:%M:%S %b %d, %Y", parts);
           buf[sizeof(buf) - 1] = '\0';
           return buf;
   }
   

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3