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 | |
---|---|
|
|
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 | |
11 | using namespace std ; |
12 | using namespace boost::posix_time ; |
13 | using namespace boost::gregorian ; |
14 | using namespace xios; |
15 | |
16 | int 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.