Ignore:
Timestamp:
07/20/08 15:21:42 (16 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mbase/MTime.cc

    r9012 r9017  
    403403        return kFALSE;
    404404
    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
    406410    if (6==sscanf(str, "%04u-%02u-%02u %02u:%02u:%02u", &y, &mon, &d, &h, &m, &s))
    407411        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);
    408418
    409419    if (3==sscanf(str, "%04u-%02u-%02u", &y, &mon, &d))
Note: See TracChangeset for help on using the changeset viewer.