Changeset 334 for XIOS/trunk/src/test
- Timestamp:
- 03/27/12 10:49:42 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/trunk/src/test/test.cpp
r316 r334 5 5 #include <boost/date_time/gregorian/gregorian.hpp> 6 6 #include <boost/date_time/posix_time/posix_time.hpp> 7 #include "calendar_type.hpp" 8 #include "date.hpp" 9 #include "calendar_util.hpp" 7 10 8 11 using namespace std ; 9 12 using namespace boost::posix_time ; 10 13 using namespace boost::gregorian ; 14 using namespace xmlioserver; 15 using namespace date ; 11 16 12 17 int main(void) 13 18 { 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 ; 19 25 return 1 ; 20 26 }
Note: See TracChangeset
for help on using the changeset viewer.