Ignore:
Timestamp:
02/20/12 17:42:29 (12 years ago)
Author:
ymipsl
Message:
  • Change date format :

dd/mm/yyyy-hh:mm:ss becomes yyyy-mm-dd hh:mm:ss

  • add boost date_time functionality

YM

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/trunk/src/output/nc4_data_output.cpp

    r314 r316  
    563563            SuperClassWriter::addVariable(axisid, NC_DOUBLE, dims); 
    564564            date::CDate initDate=cal->getInitDate() ; 
    565             StdOStringStream oss2; 
    566             oss2<<initDate.getYear()<<"-"<<initDate.getMonth()<<"-"<<initDate.getDay()<<" " 
    567                 <<initDate.getHour()<<"-"<<initDate.getMinute()<<"-"<<initDate.getSecond() ; 
    568             StdString strInitdate=oss2.str() ; 
     565//            StdOStringStream oss2; 
     566//            oss2<<initDate.getYear()<<"-"<<initDate.getMonth()<<"-"<<initDate.getDay()<<" " 
     567//                <<initDate.getHour()<<"-"<<initDate.getMinute()<<"-"<<initDate.getSecond() ; 
     568//            StdString strInitdate=oss2.str() ; 
     569            StdString strInitdate=initDate.toString() ; 
    569570            this->writeTimeAxisAttributes 
    570571               (axisid, cal->getType(), 
Note: See TracChangeset for help on using the changeset viewer.