Go to the source code of this file.
Functions/Subroutines | |
| logical function | dccaldatechkleapyear1 (elapse_sec, date, cal) |
| Judge whether it is a leap year. | |
| logical function dccaldatechkleapyear1 | ( | real(dp), intent(in) | elapse_sec, |
| type(dc_cal_date), intent(in), optional, target | date, | ||
| type(dc_cal), intent(in), optional, target | cal ) |
Judge whether it is a leap year.
Procedures described in this file are provided from "dc_calendar" module.
Judge whether the specified date is in a leap year
Judge whether it is a leap year.
If an optional argument date is omitted, information of date that is stored in the "dc_calendar" is used as date of origin. If date is not omitted, information of the variable is used as date of origin.
If an optional argument cal is omitted, information of calendar that is stored in the "dc_calendar" is used for conversion of elapsed seconds elapse_sec into year-month-day etc. If cal is not omitted, information of the variable is used.
| [in] | elapse_sec | Elapsed seconds from date |
| [in] | date | An object that stores information of date of origin |
| [in] | cal | An object that stores information of calendar |
Definition at line 64 of file dccaldatechkleapyear.f90.
References dc_calendar_types::cal_gregorian, dc_calendar_types::cal_julian, dc_calendar_internal::dccaldate_normalize(), dc_calendar_internal::dccaldate_ym2d(), dc_calendar_internal::default_cal, dc_calendar_internal::default_cal_set(), dc_calendar_internal::default_date, and dc_types::dp.