Changeset 742 in Sophya for trunk/SophyaLib/BaseTools/ppersist.cc
- Timestamp:
- Feb 26, 2000, 10:24:54 AM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaLib/BaseTools/ppersist.cc
r661 r742 35 35 36 36 37 MD5_C TXPIOPersist::ctx;37 MD5_CONTEXT PIOPersist::ctx; 38 38 PIOPersist::ClassList * PIOPersist::classList = NULL; // $CHECK$ Reza 26/04/99 39 39 map<string, uint_8> * PIOPersist::typeids = NULL; … … 250 250 rbuf[32] = '\0'; 251 251 struct tm tm; 252 strptime(rbuf,"%d/%m/%Y %T GMT",&tm); 252 #ifndef __MWERKS__ 253 strptime(rbuf,"%d/%m/%Y %H:%M:%S GMT",&tm); 254 #else 255 sscanf(rbuf,"%2d/%2d/%4d %2d:%2d:%2d GMT",&tm.tm_mday,&tm.tm_mon,&tm.tm_year, 256 &tm.tm_hour,&tm.tm_min,&tm.tm_sec); 257 tm.tm_mon --; 258 tm.tm_year -= 1900; 259 #endif 253 260 creationdate = mktime(&tm); 254 261 … … 809 816 time_t tm = time(NULL); 810 817 char datestring[33]; 811 int l=strftime(datestring,32,"%d/%m/%Y % TGMT",gmtime(&tm));818 int l=strftime(datestring,32,"%d/%m/%Y %H:%M:%S GMT",gmtime(&tm)); 812 819 for(int i=l; i<32; i++) datestring[i] = ' '; 813 820 datestring[32] = '\0';
Note:
See TracChangeset
for help on using the changeset viewer.