Changeset 742 in Sophya for trunk/SophyaLib/BaseTools/ppersist.cc


Ignore:
Timestamp:
Feb 26, 2000, 10:24:54 AM (26 years ago)
Author:
ansari
Message:

new md5

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaLib/BaseTools/ppersist.cc

    r661 r742  
    3535
    3636
    37 MD5_CTX PIOPersist::ctx;
     37MD5_CONTEXT PIOPersist::ctx;
    3838PIOPersist::ClassList * PIOPersist::classList = NULL;   // $CHECK$ Reza 26/04/99
    3939map<string, uint_8> * PIOPersist::typeids = NULL;
     
    250250  rbuf[32] = '\0';
    251251  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
    253260  creationdate = mktime(&tm);
    254261
     
    809816  time_t tm = time(NULL);
    810817  char datestring[33];
    811   int l=strftime(datestring,32,"%d/%m/%Y %T GMT",gmtime(&tm));
     818  int l=strftime(datestring,32,"%d/%m/%Y %H:%M:%S GMT",gmtime(&tm));
    812819  for(int i=l; i<32; i++)  datestring[i] = ' ';
    813820  datestring[32] = '\0';
Note: See TracChangeset for help on using the changeset viewer.