Go to the source code of this file.
Functions/Subroutines | |
| subroutine | dccalinquire1 (cal_type, month_in_year, day_in_month, day_in_month_ptr, hour_in_day, min_in_hour, sec_in_min, cal, err) |
| Inquire information of calendar. | |
| subroutine dccalinquire1 | ( | character(*), intent(out), optional | cal_type, |
| integer, intent(out), optional | month_in_year, | ||
| integer, dimension(:), intent(out), optional | day_in_month, | ||
| integer, dimension(:), optional, pointer | day_in_month_ptr, | ||
| integer, intent(out), optional | hour_in_day, | ||
| integer, intent(out), optional | min_in_hour, | ||
| real(dp), intent(out), optional | sec_in_min, | ||
| type(dc_cal), intent(in), optional, target | cal, | ||
| logical, intent(out), optional | err ) |
Inquire information of calendar.
Procedures described in this file are provided from "dc_calendar" module.
Inquire information of calendar
Inquire information of calendar.
Following strings are returned to cal_type.
| cal_type | Description |
|---|---|
| gregorian | Gregorian calendar |
| julian | Julian calendar |
| noleap | A calendar without leap year |
| 360day | A calendar in which number of days of a month is 30 |
| cyclic | A calendar in which number of days of a year is "30.6 x (number of months) - (total days until last month)" (truncate fractional part) |
| user_defined | User defined calendar |
If an optional argument cal is omitted, information of a calendar that is stored in the "dc_calendar" is returned. If cal is not omitted, information of the variable is returned.
| [out] | cal_type | Strings that specify a kind of calendar |
| [out] | month_in_year | Months in a year |
| [out] | day_in_month | Days in months (array) |
| [out] | day_in_month_ptr | Days in months (pointer) |
| [out] | hour_in_day | Hours in a day |
| [out] | min_in_hour | Minutes in an hour |
| [out] | sec_in_min | Seconds in a minute |
| [in] | cal | An object that stores information of calendar |
| [out] | err | Exception handling flag |
Definition at line 88 of file dccalinquire.f90.
References dc_trace::beginsub(), dc_error::dc_enotinit, dc_error::dc_noerr, dc_calendar_internal::dccaltype_str(), dc_calendar_internal::default_cal, dc_calendar_internal::default_cal_set(), dc_types::dp, dc_trace::endsub(), dc_error::storeerror(), and dc_types::string.