diff options
author | Birte Kristina Friesel <derf@finalrewind.org> | 2024-04-02 19:34:22 +0200 |
---|---|---|
committer | Birte Kristina Friesel <derf@finalrewind.org> | 2024-04-02 19:34:22 +0200 |
commit | df17fc508bec7626c456eb41284e64da8785ef1a (patch) | |
tree | 148b01a0c19a8e11e20f900f1010028bf0a9b3a5 /lib/Travel/Status/DE/HAFAS/Stop.pm | |
parent | aba8e771a7be92ea9b91d74fd3bf08f02c283e25 (diff) |
Journey(3pm), Stop(3pm): Document time zone handling
Diffstat (limited to 'lib/Travel/Status/DE/HAFAS/Stop.pm')
-rw-r--r-- | lib/Travel/Status/DE/HAFAS/Stop.pm | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/lib/Travel/Status/DE/HAFAS/Stop.pm b/lib/Travel/Status/DE/HAFAS/Stop.pm index 0a1f44f..0b4a2f3 100644 --- a/lib/Travel/Status/DE/HAFAS/Stop.pm +++ b/lib/Travel/Status/DE/HAFAS/Stop.pm @@ -227,6 +227,10 @@ Travel::Status::DE::HAFAS::Journey(3pm)'s stop at a given Travel::Status::DE::HAFAS::Location(3pm) with arrival/departure time, platform, etc. +All date and time entries refer to the backend time zone (Europe/Berlin in most +cases) and do not take local time into account; see B<tz_offset> for the +latter. + =head1 METHODS =head2 ACCESSORS @@ -280,10 +284,10 @@ Departure is cancelled. =item $stop->tz_offset -Offset between the backend's time zone (default: Europe/Berlin) and this stop's -time zone in minutes, if any. For instance, if the backend is currently in UTC+2 -(CEST) and the stop is in UTC+1 (IST), tz_offset is -60. undef if both are in -the same time zone (or rather, the same UTC offset). +Offset between backend time zone (default: Europe/Berlin) and this stop's time +zone in minutes, if any. For instance, if the backend uses UTC+2 (CEST) and the +stop uses UTC+1 (IST), tz_offset is -60. Returns undef if both use the same +time zone (or rather, the same UTC offset). =item $stop->delay |