Changeset 119 for XMLIO_V2/dev/dev_rv/src/XMLIO/c_interface.cpp
- Timestamp:
- 07/20/10 16:20:13 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XMLIO_V2/dev/dev_rv/src/XMLIO/c_interface.cpp
r118 r119 3 3 using namespace XMLIOSERVER; 4 4 using namespace XMLIOSERVER::XML; 5 5 6 using namespace std; 6 7 … … 32 33 33 34 string sttr("12/07/2005 - 10:11:30"); 35 string stttr("111s 14.36 mi 7y 3.9y 3.4 mg"); 34 36 Date d3 = Date::FromString(sttr, *calendar); 35 37 … … 38 40 Duration sc1 = Second * 175.3 - Minute * 13109.6 + Hour * 135.1 - Day * 616.4 + Month * 236.0 + Year * 33.9; 39 41 Duration sc2 = 60 * Day; 42 43 Duration sc3 = Duration::FromString(stttr); 40 44 41 45 std::cout << calendar->getInitDate() << std::endl; … … 52 56 53 57 std::cout << (dd+sc2) << std::endl; 54 std::cout << (d3) << std::endl; 58 std::cout << (d3) << std::endl; 59 60 std::cout << (sc3) << std::endl; 55 61 56 62 delete calendar; 57 63 58 // 64 //On écrit l'arborescence résultante du traitement sur la sortie. 59 65 //Context::ShowTree(std::clog); 60 61 //Calendar::Date date;62 //std::cout << date << std::endl;63 66 64 67 }
Note: See TracChangeset
for help on using the changeset viewer.