From 1d4a55f4e0f1d68264b033e37a9b58c19efa00d8 Mon Sep 17 00:00:00 2001 From: Birte Kristina Friesel Date: Sun, 3 Dec 2023 08:10:54 +0100 Subject: Update documentation examples to use datetime accessor --- lib/Travel/Status/DE/EFA.pm | 3 ++- lib/Travel/Status/DE/VRR.pm | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'lib/Travel') diff --git a/lib/Travel/Status/DE/EFA.pm b/lib/Travel/Status/DE/EFA.pm index 68363a6..01c9604 100644 --- a/lib/Travel/Status/DE/EFA.pm +++ b/lib/Travel/Status/DE/EFA.pm @@ -658,7 +658,8 @@ Travel::Status::DE::EFA - unofficial EFA departure monitor for my $d ($status->results) { printf( "%s %-8s %-5s %s\n", - $d->time, $d->platform_name, $d->line, $d->destination + $d->datetime->strftime('%H:%M'), + $d->platform_name, $d->line, $d->destination ); } diff --git a/lib/Travel/Status/DE/VRR.pm b/lib/Travel/Status/DE/VRR.pm index 823b4c5..89bcf69 100644 --- a/lib/Travel/Status/DE/VRR.pm +++ b/lib/Travel/Status/DE/VRR.pm @@ -35,7 +35,8 @@ Travel::Status::DE::VRR - unofficial VRR departure monitor. for my $d ($status->results) { printf( "%s %d %-5s %s\n", - $d->time, $d->platform, $d->line, $d->destination + $d->datetime->strftime('%H:%M'), + $d->platform, $d->line, $d->destination ); } -- cgit v1.2.3