Changeset 2636 for trunk/MagicSoft/Mars/mbase/MTime.cc
- Timestamp:
- 12/11/03 11:48:32 (21 years ago)
- File:
-
- 1 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 }
Note:
See TracChangeset
for help on using the changeset viewer.