source: XIOS/trunk/src/test/test.cpp @ 335

Last change on this file since 335 was 335, checked in by ymipsl, 12 years ago

Change namespace xmlioserver -> xios

YM

  • Property svn:eol-style set to native
File size: 729 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;
15using namespace date ;
16
17int main(void)
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 ;
25  return 1 ; 
26}
Note: See TracBrowser for help on using the repository browser.