Ignore:
Timestamp:
12/11/03 11:48:32 (21 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

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

    r2619 r2636  
    239239    GetTime(h, m, s, ms);
    240240
    241     return TString(Form("%2d/%02d/%02d %d:%02d:%02d.%03d", y, mon, d, h, m, s, ms));
     241    return TString(Form("%2d/%02d/%02d %02d:%02d:%02d.%03d", y, mon, d, h, m, s, ms));
    242242}
    243243
     
    273273    *fLog << GetString() << Form(" (+%dns)", fNanoSec) << endl;
    274274}
     275
     276istream &MTime::ReadBinary(istream &fin)
     277{
     278    UShort_t y;
     279    Byte_t mon, d, h, m, s;
     280
     281    fin.read((char*)&y,   2);
     282    fin.read((char*)&mon, 1);
     283    fin.read((char*)&d,   1);
     284    fin.read((char*)&h,   1);
     285    fin.read((char*)&m,   1);
     286    fin.read((char*)&s,   1); // Total=7
     287
     288    Set(y, mon, d, h, m, s, 0);
     289
     290    return fin;
     291}
Note: See TracChangeset for help on using the changeset viewer.