Changeset 549 for XIOS/trunk/src/date.hpp
- Timestamp:
- 01/26/15 14:39:26 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/trunk/src/date.hpp
r544 r549 20 20 CDate(void); 21 21 //!< Create an empty date associated to the specified calendar 22 CDate(const CCalendar 22 CDate(const CCalendar& cal); 23 23 //!< Create a date associated to the specified calendar 24 CDate(const CCalendar 25 26 CDate(const CDate 27 CDate(const CDate 24 CDate(const CCalendar& cal, int yr, int mth, int d, 25 int hr = 0, int min = 0, int sec = 0); 26 CDate(const CDate& odate); 27 CDate(const CDate* const odate); // Not implemented yet 28 28 29 29 /// Destructeur /// … … 31 31 32 32 /// Opérateurs /// 33 CDate & operator=(const CDate& date);34 friend StdOStream & operator<<(StdOStream & out, const CDate& date);35 friend StdIStream & operator>>(StdIStream & in, CDate& date); // Non testée.33 CDate& operator=(const CDate& date); 34 friend StdOStream& operator<<(StdOStream& out, const CDate& date); 35 friend StdIStream& operator>>(StdIStream& in, CDate& date); // Non testée. 36 36 37 37 //!< Return the number of seconds since the time origin fixed when creating the calendar … … 52 52 const CCalendar& getRelCalendar(void) const; 53 53 bool hasRelCalendar(void) const; 54 55 //!< Get the number of seconds since the beginning of the year 56 int getSecondOfYear() const; 57 //!< Get the number of days (expressed as a real number) since the beginning of the year 58 double getDayOfYear() const; 59 //!< Get the fraction of the current year as a real number between 0 and 1 60 double getFractionOfYear() const; 61 //!< Get the number of seconds since the beginning of the day 62 int getSecondOfDay() const; 63 //!< Get the fraction of the current day as a real number between 0 and 1 64 double getFractionOfDay() const; 54 65 55 66 /// Mutateurs /// … … 77 88 public : /* static */ 78 89 79 static CDate FromString(const StdString & str, const CCalendar& calendar);90 static CDate FromString(const StdString& str, const CCalendar& calendar); 80 91 81 92 private :
Note: See TracChangeset
for help on using the changeset viewer.