Changeset 204 for XMLIO_V2/dev/dev_rv/src/xmlio/date.cpp
- Timestamp:
- 05/25/11 15:19:14 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XMLIO_V2/dev/dev_rv/src/xmlio/date.cpp
r188 r204 44 44 StdOStream & operator<<(StdOStream & out, const CDate & date) 45 45 { 46 out << date.day << '/' << date.month << '/' << date.year << '-' 47 << date.hour << ':' << date.minute << ':' << date.second; 46 std::streamsize s = out.width (2); 47 char c = out.fill ('0'); 48 out << date.day << '/'; 49 s = out.width (2); c = out.fill ('0'); 50 out << date.month << '/'; 51 s = out.width (4); c = out.fill ('0'); 52 out << date.year << '-'; 53 s = out.width (2); c = out.fill ('0'); 54 out << date.hour << ':'; 55 s = out.width (2); c = out.fill ('0'); 56 out << date.minute << ':'; 57 s = out.width (2); c = out.fill ('0'); 58 out << date.second; 59 48 60 return (out); 49 61 }
Note: See TracChangeset
for help on using the changeset viewer.