source: XIOS/dev/common/src/date/d360.cpp @ 1620

Last change on this file since 1620 was 293, checked in by ymipsl, 13 years ago

mise en conformite norm CF pour les attribut de l'axe des temps.

YM

File size: 1.0 KB
Line 
1#include "d360.hpp"
2
3namespace xmlioserver
4{
5   namespace date
6   {
7      /// ////////////////////// Définitions ////////////////////// ///
8
9      CD360Calendar::CD360Calendar(const StdString & dateStr)
10         : CCalendar("D360", dateStr)
11      { /* Ne rien faire de plus */ }
12
13      CD360Calendar::CD360Calendar(int yr, int mth, int d,
14                                   int hr, int min, int sec)
15         : CCalendar("D360", yr, mth, d, hr, min, sec)
16      { /* Ne rien faire de plus */ }
17
18      CD360Calendar::~CD360Calendar(void)
19      { /* Ne rien faire de plus */ }
20
21      ///--------------------------------------------------------------
22
23      int CD360Calendar::getYearTotalLength(const CDate & date) const
24      { return (360 * 86400); }
25
26      int CD360Calendar::getMonthLength(const CDate & date) const
27      { return (30); }
28
29      StdString CD360Calendar::getType(void) const
30      { return (StdString("360_day")); }
31
32      ///--------------------------------------------------------------
33   } // namespace date
34} // namespace xmlioserver
35
Note: See TracBrowser for help on using the repository browser.