Ignore:
Timestamp:
12/11/03 11:48:32 (21 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mbase
Files:
2 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}
  • trunk/MagicSoft/Mars/mbase/MTime.h

    r2617 r2636  
    1212#ifndef MARS_MParContainer
    1313#include "MParContainer.h"
     14#endif
     15
     16#ifndef _CPP_IOSFWD
     17#include <iosfwd>
    1418#endif
    1519
     
    9599    UInt_t Sec() const   { Byte_t h, m, s; GetTime(h,m,s); return s; }
    96100
     101    istream &ReadBinary(istream &fin);
     102
    97103    operator double() const   //[s]
    98104    {
Note: See TracChangeset for help on using the changeset viewer.