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

Last change on this file since 316 was 316, checked in by ymipsl, 12 years ago
  • Change date format :

dd/mm/yyyy-hh:mm:ss becomes yyyy-mm-dd hh:mm:ss

  • add boost date_time functionality

YM

  • Property svn:eol-style set to native
File size: 414 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
8using namespace std ;
9using namespace boost::posix_time ;
10using namespace boost::gregorian ;
11
12int main(void)
13{
14      ptime t(time_from_string("2012-02-30 15:24")) ;
15     
16       
17      std::cout << to_simple_string(t) << std::endl;
18
19  return 1 ; 
20}
Note: See TracBrowser for help on using the repository browser.