Go to the source code of this file.
Functions/Subroutines | |
| real(dp) function | dccalconverttohour1 (in_time, in_unit, cal) |
| Convert time to hour unit. | |
| real(dp) function | dccalconverttohour2 (in_time, in_unit, cal) |
| real(dp) function dccalconverttohour1 | ( | real(dp), intent(in) | in_time, |
| character(*), intent(in) | in_unit, | ||
| type(dc_cal), intent(in), optional, target | cal ) |
Convert time to hour unit.
Procedures described in this file are provided from "dc_calendar" module.
Convert time from arbitrary unit to hour (string version)
Convert of unit from arbitrary time units (day, hour, minute, second) into hour.
Valid strings as units of time are follows.
| Parameter | Description |
|---|---|
| dc_calendar_types#UNIT_SEC | Units of second |
| dc_calendar_types#UNIT_MIN | Units of minute |
| dc_calendar_types#UNIT_HOUR | Units of hour |
| dc_calendar_types#UNIT_DAY | Units of day |
If an optional argument cal is omitted, unit is converted with information of a calendar that is stored in the "dc_calendar". If cal is not omitted, unit is converted with information of the variable.
| [in] | in_time | Numerical value of time before conversion |
| [in] | in_unit | Units of time before conversion (string) |
| [in] | cal | An object that stores information of calendar |
Definition at line 72 of file dccalconverttohour.f90.
References dc_calendar_internal::dccaldate_str2usym(), dc_calendar_internal::default_cal, dc_calendar_internal::default_cal_set(), dc_types::dp, and dc_calendar_types::unit_symbol_hour.
| real(dp) function dccalconverttohour2 | ( | real(dp), intent(in) | in_time, |
| integer, intent(in) | in_unit, | ||
| type(dc_cal), intent(in), optional, target | cal ) |
Convert time from arbitrary unit to hour (symbol version)
Convert of unit from arbitrary time units (day, hour, minute, second) into hour.
Valid integer variables as units of time are follows. Do not specify integer directly, but specify following variables.
| Parameter | Description |
|---|---|
| dc_calendar_types#UNIT_SYMBOL_SEC | Units of second |
| dc_calendar_types#UNIT_SYMBOL_MIN | Units of minute |
| dc_calendar_types#UNIT_SYMBOL_HOUR | Units of hour |
| dc_calendar_types#UNIT_SYMBOL_DAY | Units of day |
If an optional argument cal is omitted, unit is converted with information of a calendar that is stored in the "dc_calendar". If cal is not omitted, unit is converted with information of the variable.
| [in] | in_time | Numerical value of time before conversion |
| [in] | in_unit | Units of time before conversion (integer symbol) |
| [in] | cal | An object that stores information of calendar |
Definition at line 186 of file dccalconverttohour.f90.
References dc_calendar_internal::default_cal, dc_calendar_internal::default_cal_set(), dc_types::dp, and dc_calendar_types::unit_symbol_hour.