source: vendor/nemo/current/NEMOGCM/EXTERNAL/XIOS/src/test/test.cpp @ 44

Last change on this file since 44 was 44, checked in by cholod, 12 years ago

Load NEMO_TMP into vendor/nemo/current.

File size: 706 bytes
Line 
1#include <iostream>
2#include <sstream>
3#include <string>
4
5#include <boost/date_time/gregorian/gregorian.hpp>
6#include <boost/date_time/posix_time/posix_time.hpp>
7#include "calendar_type.hpp"
8#include "date.hpp"
9#include "calendar_util.hpp"
10
11using namespace std ;
12using namespace boost::posix_time ;
13using namespace boost::gregorian ;
14using namespace xios;
15
16int main(void)
17{
18//      ptime t(time_from_string("2012-02-30 15:24")) ;
19//      std::cout << to_simple_string(t) << std::endl;
20      CGregorianCalendar MyCalendar("2011-03-01 00:00") ;
21      cout<<MyCalendar.getInitDate()<<endl;
22      cout<<MyCalendar.getCurrentDate()<<endl ;
23      cout<<MyCalendar.getCurrentDate()-1*Day<<endl ;
24  return 1 ; 
25}
Note: See TracBrowser for help on using the repository browser.