New URL for NEMO forge!   http://forge.nemo-ocean.eu

Since March 2022 along with NEMO 4.2 release, the code development moved to a self-hosted GitLab.
This present forge is now archived and remained online for history.
test.cpp in vendors/XIOS/current/src/test – NEMO

source: vendors/XIOS/current/src/test/test.cpp @ 3408

Last change on this file since 3408 was 3408, checked in by rblod, 12 years ago

importing initial XIOS vendor drop

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
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.