Go to the source code of this file.
Functions/Subroutines | |
| subroutine | dcdatetimesetzone (time, zone, err) |
| Procedures for timezone handling. | |
| type(dc_difftime) function | dcdatetimezonetodiff (zone) |
| logical function | dcdatetimevalidzone (zone) |
| subroutine dcdatetimesetzone | ( | type(dc_datetime), intent(inout) | time, |
| character(*), intent(in) | zone, | ||
| logical, intent(out), optional | err | ||
| ) |
Procedures for timezone handling.
Definition at line 53 of file dcdatetimezone.f90.
References dc_trace::beginsub(), dc_error::dc_ebadtimezone, dc_error::dc_noerr, dc_trace::endsub(), dc_error::storeerror(), and dc_types::string.
| logical function dcdatetimevalidzone | ( | character(*), intent(in) | zone | ) |
Check if timezone notation is valid
Returns .true. if the given timezone notation is valid, .false. otherwise.
The timezone notation should be like '+09:00', where the 1st character is '+' or '-', 2nd-3rd and 5th-6th characters are digits, and 4th character is ':'.
| [in] | zone | Timezone string to check |
Definition at line 173 of file dcdatetimezone.f90.
| type(dc_difftime) function dcdatetimezonetodiff | ( | character(*), intent(in) | zone | ) |
Convert timezone string to DC_DIFFTIME
Convert the given timezone to a dc_date_types::DC_DIFFTIME variable and return it. If the timezone notation is invalid, it is interpreted as if '+00:00' was given.
| [in] | zone | Timezone string (e.g., "+09:00") |
Definition at line 123 of file dcdatetimezone.f90.