Ignore:
Timestamp:
05/25/11 15:19:14 (13 years ago)
Author:
hozdoba
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • XMLIO_V2/dev/dev_rv/src/xmlio/date.cpp

    r188 r204  
    4444      StdOStream & operator<<(StdOStream & out, const CDate & date) 
    4545      { 
    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          
    4860         return (out); 
    4961      } 
Note: See TracChangeset for help on using the changeset viewer.