Changeset 334 for XIOS/trunk/src/test


Ignore:
Timestamp:
03/27/12 10:49:42 (12 years ago)
Author:
ymipsl
Message:
  • Add new attribut : time_origin for time axis origin which appear in nectdf file
  • centered time averaging for time axis
  • correct bug in calendar due to call of virtual function in the constructor

YM

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/trunk/src/test/test.cpp

    r316 r334  
    55#include <boost/date_time/gregorian/gregorian.hpp> 
    66#include <boost/date_time/posix_time/posix_time.hpp> 
     7#include "calendar_type.hpp" 
     8#include "date.hpp" 
     9#include "calendar_util.hpp" 
    710 
    811using namespace std ; 
    912using namespace boost::posix_time ; 
    1013using namespace boost::gregorian ; 
     14using namespace xmlioserver; 
     15using namespace date ; 
    1116 
    1217int main(void) 
    1318{ 
    14       ptime t(time_from_string("2012-02-30 15:24")) ; 
    15        
    16         
    17       std::cout << to_simple_string(t) << std::endl; 
    18  
     19//      ptime t(time_from_string("2012-02-30 15:24")) ; 
     20//      std::cout << to_simple_string(t) << std::endl; 
     21      CGregorianCalendar MyCalendar("2011-03-01 00:00") ; 
     22      cout<<MyCalendar.getInitDate()<<endl; 
     23      cout<<MyCalendar.getCurrentDate()<<endl ; 
     24      cout<<MyCalendar.getCurrentDate()-1*Day<<endl ; 
    1925  return 1 ;   
    2026} 
Note: See TracChangeset for help on using the changeset viewer.