Changeset 550 for XIOS/trunk/src/date
- Timestamp:
- 02/10/15 14:23:02 (10 years ago)
- Location:
- XIOS/trunk/src/date
- Files:
-
- 2 added
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/trunk/src/date/calendar_type.hpp
r501 r550 7 7 #include "julian.hpp" 8 8 #include "noleap.hpp" 9 #include "user_defined.hpp" 9 10 10 11 #endif //__XMLIO_calendar_type__ -
XIOS/trunk/src/date/gregorian.cpp
r532 r550 33 33 ///-------------------------------------------------------------- 34 34 35 int CGregorianCalendar::getYearTotalLength(const CDate 35 int CGregorianCalendar::getYearTotalLength(const CDate& date) const 36 36 { // Retourne la durée d'une année en seconde. 37 37 if ((date.getYear() % 4 == 0) && … … 42 42 } 43 43 44 int CGregorianCalendar::getMonthLength(const CDate 44 int CGregorianCalendar::getMonthLength(const CDate& date) const 45 45 { // Retourne la durée du mois en jour. 46 46 if (date.getMonth() == 2) … … 58 58 { return (StdString("gregorian")); } 59 59 60 bool CGregorianCalendar::hasLeapYear() const { return true; } 61 60 62 ///-------------------------------------------------------------- 61 63 } // namespace xmlioserver -
XIOS/trunk/src/date/gregorian.hpp
r532 r550 30 30 virtual StdString getType(void) const; 31 31 32 virtual bool hasLeapYear() const; 33 32 34 /// Destructeur /// 33 35 virtual ~CGregorianCalendar(void); -
XIOS/trunk/src/date/julian.cpp
r532 r550 33 33 ///-------------------------------------------------------------- 34 34 35 int CJulianCalendar::getYearTotalLength(const CDate 35 int CJulianCalendar::getYearTotalLength(const CDate& date) const 36 36 { // Retourne la durée d'une année en seconde. 37 37 if (date.getYear() % 4 == 0) return (366 * 86400); … … 39 39 } 40 40 41 int CJulianCalendar::getMonthLength(const CDate 41 int CJulianCalendar::getMonthLength(const CDate& date) const 42 42 { // Retourne la durée du mois en jour. 43 43 if (date.getMonth() == 2) … … 52 52 { return (StdString("julian")); } 53 53 54 bool CJulianCalendar::hasLeapYear() const { return true; } 55 54 56 ///-------------------------------------------------------------- 55 57 } // namespace xmlioserver -
XIOS/trunk/src/date/julian.hpp
r532 r550 30 30 virtual StdString getType(void) const; 31 31 32 virtual bool hasLeapYear() const; 33 32 34 /// Destructeur /// 33 35 virtual ~CJulianCalendar(void);
Note: See TracChangeset
for help on using the changeset viewer.