Go to the source code of this file.
Functions/Subroutines | |
| real(dp) function | dccalconvertbyunit1 (in_time, in_unit, out_unit, cal) |
| Unit conversion functions for calendar. | |
| real(dp) function | dccalconvertbyunit2 (in_time, in_unit, out_unit, cal) |
| real(dp) function dccalconvertbyunit1 | ( | real(dp), intent(in) | in_time, |
| character(*), intent(in) | in_unit, | ||
| character(*), intent(in) | out_unit, | ||
| type(dc_cal), intent(in), optional, target | cal | ||
| ) |
Unit conversion functions for calendar.
Definition at line 73 of file dccalconvertbyunit.f90.
References dc_calendar_internal::dccaldate_str2usym(), dc_calendar_internal::default_cal, dc_calendar_internal::default_cal_set(), and dc_types::dp.
| real(dp) function dccalconvertbyunit2 | ( | real(dp), intent(in) | in_time, |
| integer, intent(in) | in_unit, | ||
| integer, intent(in) | out_unit, | ||
| type(dc_cal), intent(in), optional, target | cal | ||
| ) |
Convert time value between different units (symbol version)
Convert of unit.
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] | out_unit | Units of time after conversion (integer symbol) |
| [in] | cal | An object that stores information of calendar |
Definition at line 189 of file dccalconvertbyunit.f90.
References dc_calendar_internal::default_cal, dc_calendar_internal::default_cal_set(), dc_types::dp, 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.