Go to the source code of this file.
Functions/Subroutines | |
| subroutine | dccaldateevalymdhms1 (year, month, day, hour, min, sec, elapse_sec, cal, date, err) |
| Evaluate date. | |
| subroutine | dccaldateevalymdhms2 (year, month, day, hour, min, sec, elapse_time, units, cal, date, err) |
| subroutine | dccaldateevalid1 (init_date, elapse_sec, cal, date, err) |
| subroutine | dccaldateevalid2 (init_date, elapse_time, units, cal, date, err) |
| subroutine | dccaldateevalym2ym1 (year1, month1, day1, hour1, min1, sec1, elapse_sec, year2, month2, day2, hour2, min2, sec2, cal, err) |
| subroutine | dccaldateevalym2ym2 (year1, month1, day1, hour1, min1, sec1, elapse_time, units, year2, month2, day2, hour2, min2, sec2, cal, err) |
| real(dp) function | dccaldateevalsecofyear1 (elapse_sec, date, cal) |
| real(dp) function | dccaldateevaldayofyear1 (elapse_sec, date, cal) |
| real(dp) function | dccaldateevalsecofday1 (elapse_sec, date, cal) |
| real(dp) function dccaldateevaldayofyear1 | ( | real(dp), intent(in) | elapse_sec, |
| type(dc_cal_date), intent(in), optional, target | date, | ||
| type(dc_cal), intent(in), optional, target | cal ) |
Evaluate day of year
Evaluate day of 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 1318 of file dccaldateeval.f90.
References 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.
| subroutine dccaldateevalid1 | ( | type(dc_cal_date), intent(in) | init_date, |
| real(dp), intent(in) | elapse_sec, | ||
| type(dc_cal), intent(in), optional, target | cal, | ||
| type(dc_cal_date), intent(out), optional, target | date, | ||
| logical, intent(out), optional | err ) |
Evaluate and set date from initial date object with elapsed seconds
Evaluate and set date.
If an optional argument date is omitted, the date setting is stored to a "dc_calendar_types#DC_CAL_DATE" variable that is saved in the "dc_calendar". When date is omitted in subsequent procedures, the internal date is used. If date is not omitted, the settings is stored to the date. In order to use the date setting, use the "dc_calendar_types#DC_CAL_DATE" variable to subsequent procedures.
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] | init_date | An object that stores information of date of origin |
| [in] | elapse_sec | Elapsed seconds from init_date |
| [in] | cal | An object that stores information of calendar |
| [out] | date | An object that stores information of date and time after elapsed time |
| [out] | err | Exception handling flag |
Definition at line 478 of file dccaldateeval.f90.
References dc_trace::beginsub(), dc_error::dc_ebaddate, dc_error::dc_einconsistcaldate, dc_error::dc_enotinit, dc_error::dc_noerr, dc_calendar_internal::dccaldate_normalize(), dc_calendar_internal::default_cal, dc_calendar_internal::default_cal_set(), dc_calendar_internal::default_date, dc_types::dp, dc_trace::endsub(), dc_error::storeerror(), dc_types::string, and dc_types::token.
| subroutine dccaldateevalid2 | ( | type(dc_cal_date), intent(in) | init_date, |
| real(dp), intent(in) | elapse_time, | ||
| character(*), intent(in) | units, | ||
| type(dc_cal), intent(in), optional, target | cal, | ||
| type(dc_cal_date), intent(out), optional, target | date, | ||
| logical, intent(out), optional | err ) |
Evaluate and set date from initial date object with elapsed time and units
Evaluate and set date.
If an optional argument date is omitted, the date setting is stored to a "dc_calendar_types#DC_CAL_DATE" variable that is saved in the "dc_calendar". When date is omitted in subsequent procedures, the internal date is used. If date is not omitted, the settings is stored to the date. In order to use the date setting, use the "dc_calendar_types#DC_CAL_DATE" variable to subsequent procedures.
If an optional argument cal is omitted, information of calendar that is stored in the "dc_calendar" is used for conversion of elapsed time elapse_time into year-month-day etc. If cal is not omitted, information of the variable is used.
| [in] | init_date | An object that stores information of date of origin |
| [in] | elapse_time | Elapsed time from init_date. Unit is specified as units. |
| [in] | units | Unit of elapse_time |
| [in] | cal | An object that stores information of calendar |
| [out] | date | An object that stores information of date and time after elapsed time |
| [out] | err | Exception handling flag |
Definition at line 655 of file dccaldateeval.f90.
References dc_trace::beginsub(), dc_error::dc_ebaddate, dc_error::dc_ebadunit, dc_error::dc_einconsistcaldate, dc_error::dc_enotinit, dc_error::dc_noerr, dc_calendar_internal::dccaldate_normalize(), dc_calendar_internal::dccaldate_str2usym(), dc_calendar_internal::default_cal, dc_calendar_internal::default_cal_set(), dc_calendar_internal::default_date, dc_types::dp, dc_trace::endsub(), dc_error::storeerror(), dc_types::string, dc_types::token, dc_calendar_types::unit_symbol_day, dc_calendar_types::unit_symbol_hour, dc_calendar_types::unit_symbol_min, and dc_calendar_types::unit_symbol_sec.
| real(dp) function dccaldateevalsecofday1 | ( | real(dp), intent(in) | elapse_sec, |
| type(dc_cal_date), intent(in), optional, target | date, | ||
| type(dc_cal), intent(in), optional, target | cal ) |
Evaluate second of day
Evaluate second of day.
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 1423 of file dccaldateeval.f90.
References 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.
| real(dp) function dccaldateevalsecofyear1 | ( | real(dp), intent(in) | elapse_sec, |
| type(dc_cal_date), intent(in), optional, target | date, | ||
| type(dc_cal), intent(in), optional, target | cal ) |
Evaluate second of year
Evaluate second of 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 1202 of file dccaldateeval.f90.
References 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.
| subroutine dccaldateevalym2ym1 | ( | integer, intent(in) | year1, |
| integer, intent(in) | month1, | ||
| integer, intent(in) | day1, | ||
| integer, intent(in) | hour1, | ||
| integer, intent(in) | min1, | ||
| real(dp), intent(in) | sec1, | ||
| real(dp), intent(in) | elapse_sec, | ||
| integer, intent(out) | year2, | ||
| integer, intent(out) | month2, | ||
| integer, intent(out) | day2, | ||
| integer, intent(out) | hour2, | ||
| integer, intent(out) | min2, | ||
| real(dp), intent(out) | sec2, | ||
| type(dc_cal), intent(in), optional, target | cal, | ||
| logical, intent(out), optional | err ) |
Evaluate date and return as individual variables with elapsed seconds
Evaluate and set date.
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] | year1 | Year of origin |
| [in] | month1 | Month of origin |
| [in] | day1 | Day of origin |
| [in] | hour1 | Hour of origin |
| [in] | min1 | Minute of origin |
| [in] | sec1 | Second of origin |
| [in] | elapse_sec | Elapsed seconds from year1 – sec1 |
| [out] | year2 | Year after elapsed time |
| [out] | month2 | Month after elapsed time |
| [out] | day2 | Day after elapsed time |
| [out] | hour2 | Hour after elapsed time |
| [out] | min2 | Minute after elapsed time |
| [out] | sec2 | Second after elapsed time |
| [in] | cal | An object that stores information of calendar |
| [out] | err | Exception handling flag |
Definition at line 854 of file dccaldateeval.f90.
References dc_trace::beginsub(), dc_error::dc_einconsistcaldate, dc_error::dc_enotinit, dc_error::dc_noerr, dc_calendar_internal::dccaldate_normalize(), dc_calendar_internal::default_cal, dc_calendar_internal::default_cal_set(), dc_types::dp, dc_trace::endsub(), dc_error::storeerror(), and dc_types::string.
| subroutine dccaldateevalym2ym2 | ( | integer, intent(in) | year1, |
| integer, intent(in) | month1, | ||
| integer, intent(in) | day1, | ||
| integer, intent(in) | hour1, | ||
| integer, intent(in) | min1, | ||
| real(dp), intent(in) | sec1, | ||
| real(dp), intent(in) | elapse_time, | ||
| character(*), intent(in) | units, | ||
| integer, intent(out) | year2, | ||
| integer, intent(out) | month2, | ||
| integer, intent(out) | day2, | ||
| integer, intent(out) | hour2, | ||
| integer, intent(out) | min2, | ||
| real(dp), intent(out) | sec2, | ||
| type(dc_cal), intent(in), optional, target | cal, | ||
| logical, intent(out), optional | err ) |
Evaluate date and return as individual variables with elapsed time and units
Evaluate and set date.
If an optional argument cal is omitted, information of calendar that is stored in the "dc_calendar" is used for conversion of elapsed time elapse_time into year-month-day etc. If cal is not omitted, information of the variable is used.
| [in] | year1 | Year of origin |
| [in] | month1 | Month of origin |
| [in] | day1 | Day of origin |
| [in] | hour1 | Hour of origin |
| [in] | min1 | Minute of origin |
| [in] | sec1 | Second of origin |
| [in] | elapse_time | Elapsed time from year1 – sec1. Unit is specified as units. |
| [in] | units | Unit of elapse_time |
| [out] | year2 | Year after elapsed time |
| [out] | month2 | Month after elapsed time |
| [out] | day2 | Day after elapsed time |
| [out] | hour2 | Hour after elapsed time |
| [out] | min2 | Minute after elapsed time |
| [out] | sec2 | Second after elapsed time |
| [in] | cal | An object that stores information of calendar |
| [out] | err | Exception handling flag |
Definition at line 1023 of file dccaldateeval.f90.
References dc_trace::beginsub(), dc_error::dc_ebadunit, dc_error::dc_einconsistcaldate, dc_error::dc_enotinit, dc_error::dc_noerr, dc_calendar_internal::dccaldate_normalize(), dc_calendar_internal::dccaldate_str2usym(), dc_calendar_internal::default_cal, dc_calendar_internal::default_cal_set(), dc_types::dp, dc_trace::endsub(), dc_error::storeerror(), dc_types::string, dc_calendar_types::unit_symbol_day, dc_calendar_types::unit_symbol_hour, dc_calendar_types::unit_symbol_min, and dc_calendar_types::unit_symbol_sec.
| subroutine dccaldateevalymdhms1 | ( | integer, intent(in) | year, |
| integer, intent(in) | month, | ||
| integer, intent(in) | day, | ||
| integer, intent(in) | hour, | ||
| integer, intent(in) | min, | ||
| real(dp), intent(in) | sec, | ||
| real(dp), intent(in) | elapse_sec, | ||
| type(dc_cal), intent(in), optional, target | cal, | ||
| type(dc_cal_date), intent(out), optional, target | date, | ||
| logical, intent(out), optional | err ) |
Evaluate date.
Procedures described in this file are provided from "dc_calendar" module.
Evaluate and set date with elapsed seconds
Evaluate and set date.
If an optional argument date is omitted, the date setting is stored to a "dc_calendar_types#DC_CAL_DATE" variable that is saved in the "dc_calendar". When date is omitted in subsequent procedures, the internal date is used. If date is not omitted, the settings is stored to the date. In order to use the date setting, use the "dc_calendar_types#DC_CAL_DATE" variable to subsequent procedures.
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] | year | Year of origin |
| [in] | month | Month of origin |
| [in] | day | Day of origin |
| [in] | hour | Hour of origin |
| [in] | min | Minute of origin |
| [in] | sec | Second of origin |
| [in] | elapse_sec | Elapsed seconds from year – sec |
| [in] | cal | An object that stores information of calendar |
| [out] | date | An object that stores information of date and time after elapsed time |
| [out] | err | Exception handling flag |
Definition at line 86 of file dccaldateeval.f90.
References dc_trace::beginsub(), dc_error::dc_ebaddate, dc_error::dc_einconsistcaldate, dc_error::dc_enotinit, dc_error::dc_noerr, dc_calendar_internal::dccaldate_normalize(), dc_calendar_internal::default_cal, dc_calendar_internal::default_cal_set(), dc_calendar_internal::default_date, dc_types::dp, dc_trace::endsub(), dc_error::storeerror(), and dc_types::string.
| subroutine dccaldateevalymdhms2 | ( | integer, intent(in) | year, |
| integer, intent(in) | month, | ||
| integer, intent(in) | day, | ||
| integer, intent(in) | hour, | ||
| integer, intent(in) | min, | ||
| real(dp), intent(in) | sec, | ||
| real(dp), intent(in) | elapse_time, | ||
| character(*), intent(in) | units, | ||
| type(dc_cal), intent(in), optional, target | cal, | ||
| type(dc_cal_date), intent(out), optional, target | date, | ||
| logical, intent(out), optional | err ) |
Evaluate and set date with elapsed time and units
Evaluate and set date.
If an optional argument date is omitted, the date setting is stored to a "dc_calendar_types#DC_CAL_DATE" variable that is saved in the "dc_calendar". When date is omitted in subsequent procedures, the internal date is used. If date is not omitted, the settings is stored to the date. In order to use the date setting, use the "dc_calendar_types#DC_CAL_DATE" variable to subsequent procedures.
If an optional argument cal is omitted, information of calendar that is stored in the "dc_calendar" is used for conversion of elapsed time elapse_time into year-month-day etc. If cal is not omitted, information of the variable is used.
| [in] | year | Year of origin |
| [in] | month | Month of origin |
| [in] | day | Day of origin |
| [in] | hour | Hour of origin |
| [in] | min | Minute of origin |
| [in] | sec | Second of origin |
| [in] | elapse_time | Elapsed time from year – sec. Unit is specified as units. |
| [in] | units | Unit of elapse_time |
| [in] | cal | An object that stores information of calendar |
| [out] | date | An object that stores information of date and time after elapsed time |
| [out] | err | Exception handling flag |
Definition at line 277 of file dccaldateeval.f90.
References dc_trace::beginsub(), dc_error::dc_ebaddate, dc_error::dc_ebadunit, dc_error::dc_einconsistcaldate, dc_error::dc_enotinit, dc_error::dc_noerr, dc_calendar_internal::dccaldate_normalize(), dc_calendar_internal::dccaldate_str2usym(), dc_calendar_internal::default_cal, dc_calendar_internal::default_cal_set(), dc_calendar_internal::default_date, dc_types::dp, dc_trace::endsub(), dc_error::storeerror(), dc_types::string, dc_calendar_types::unit_symbol_day, dc_calendar_types::unit_symbol_hour, dc_calendar_types::unit_symbol_min, and dc_calendar_types::unit_symbol_sec.