Changeset 2636 for trunk/MagicSoft/Mars/mbase
- Timestamp:
- 12/11/03 11:48:32 (21 years ago)
- Location:
- trunk/MagicSoft/Mars/mbase
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mbase/MTime.cc
r2619 r2636 239 239 GetTime(h, m, s, ms); 240 240 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)); 242 242 } 243 243 … … 273 273 *fLog << GetString() << Form(" (+%dns)", fNanoSec) << endl; 274 274 } 275 276 istream &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 12 12 #ifndef MARS_MParContainer 13 13 #include "MParContainer.h" 14 #endif 15 16 #ifndef _CPP_IOSFWD 17 #include <iosfwd> 14 18 #endif 15 19 … … 95 99 UInt_t Sec() const { Byte_t h, m, s; GetTime(h,m,s); return s; } 96 100 101 istream &ReadBinary(istream &fin); 102 97 103 operator double() const //[s] 98 104 {
Note:
See TracChangeset
for help on using the changeset viewer.