Changeset 9017 for trunk/MagicSoft/Mars/mbase
- Timestamp:
- 07/20/08 15:21:42 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mbase/MTime.cc
r9012 r9017 403 403 return kFALSE; 404 404 405 UInt_t y, mon, d, h, m, s; 405 UInt_t y, mon, d, h, m, s, ms; 406 407 if (7==sscanf(str, "%04u-%02u-%02u %02u:%02u:%02u.%u", &y, &mon, &d, &h, &m, &s, &ms)) 408 return Set(y, mon, d, h, m, s, ms); 409 406 410 if (6==sscanf(str, "%04u-%02u-%02u %02u:%02u:%02u", &y, &mon, &d, &h, &m, &s)) 407 411 return Set(y, mon, d, h, m, s); 412 413 if (5==sscanf(str, "%04u-%02u-%02u %02u:%02u", &y, &mon, &d, &h, &m)) 414 return Set(y, mon, d, h, m); 415 416 if (4==sscanf(str, "%04u-%02u-%02u %02u", &y, &mon, &d, &h)) 417 return Set(y, mon, d, h); 408 418 409 419 if (3==sscanf(str, "%04u-%02u-%02u", &y, &mon, &d))
Note:
See TracChangeset
for help on using the changeset viewer.