Changeset 2805 in Sophya for trunk/SophyaLib/BaseTools/timestamp.cc
- Timestamp:
- Jun 9, 2005, 6:20:00 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaLib/BaseTools/timestamp.cc
r2666 r2805 9 9 #include <iostream> 10 10 11 /*! 12 \class SOPHYA::TimeStamp 13 \ingroup BaseTools 14 A simple class for representing date and time. Simple operations 15 on date/time are also provided. 16 17 \code 18 // Create a object with the current date and time and prints it to cout 19 TimeStamp ts; 20 cout << ts << endl; 21 // Create an object with a specified date and time 22 TimeStamp ts2("01/01/1905","00:00:00"); 23 // Get the number of days since 0 Jan 1901 24 cout << ts2.ToDays() << endl; 25 \endcode 26 */ 27 11 28 #ifdef Linux 12 29 // La fonction trunc non declaree ds math.h sous Linux … … 16 33 //-------------------------- Classe TimeStamp -------------------------- 17 34 //------------------------------------------------------------------------- 35 18 36 enum Jour {jour_Lundi=0, jour_Mardi, jour_Mercredi, jour_Jeudi, jour_Vendredi, jour_Samedi, jour_Dimanche}; 19 37 enum Mois {mois_Janvier=1, mois_Fevrier, mois_Mars, mois_Avril, mois_Mai, mois_Juin, mois_Juillet,
Note:
See TracChangeset
for help on using the changeset viewer.