Changeset 549 for XIOS/trunk/src/interface/c/icdate.cpp
- Timestamp:
- 01/26/15 14:39:26 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/trunk/src/interface/c/icdate.cpp
r545 r549 144 144 return (date1 >= date2); 145 145 } 146 147 int cxios_date_get_second_of_year(cxios_date date_c) 148 { 149 xios::CDate date = xios::CDate(getCalendar("int cxios_date_get_second_of_year(cxios_date date_c)"), 150 date_c.year, date_c.month, date_c.day, 151 date_c.hour, date_c.minute, date_c.second); 152 return date.getSecondOfYear(); 153 } 154 155 double cxios_date_get_day_of_year(cxios_date date_c) 156 { 157 xios::CDate date = xios::CDate(getCalendar("int cxios_date_get_day_of_year(cxios_date date_c)"), 158 date_c.year, date_c.month, date_c.day, 159 date_c.hour, date_c.minute, date_c.second); 160 return date.getDayOfYear(); 161 } 162 163 double cxios_date_get_fraction_of_year(cxios_date date_c) 164 { 165 xios::CDate date = xios::CDate(getCalendar("int cxios_date_get_fraction_of_year(cxios_date date_c)"), 166 date_c.year, date_c.month, date_c.day, 167 date_c.hour, date_c.minute, date_c.second); 168 return date.getFractionOfYear(); 169 } 170 171 int cxios_date_get_second_of_day(cxios_date date_c) 172 { 173 xios::CDate date = xios::CDate(getCalendar("int cxios_date_get_second_of_day(cxios_date date_c)"), 174 date_c.year, date_c.month, date_c.day, 175 date_c.hour, date_c.minute, date_c.second); 176 return date.getSecondOfDay(); 177 } 178 179 double cxios_date_get_fraction_of_day(cxios_date date_c) 180 { 181 xios::CDate date = xios::CDate(getCalendar("int cxios_date_get_fraction_of_day(cxios_date date_c)"), 182 date_c.year, date_c.month, date_c.day, 183 date_c.hour, date_c.minute, date_c.second); 184 return date.getFractionOfDay(); 185 } 146 186 } // extern "C"
Note: See TracChangeset
for help on using the changeset viewer.