From 910b35eee7e86cd7c0de3ec4d288e5e5423c4709 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Mon, 21 Dec 2015 23:12:30 +0100 Subject: documentation --- lib/Travel/Status/DE/HAFAS.pm | 4 ++++ lib/Travel/Status/DE/HAFAS/Result.pm | 14 ++++++++++++++ 2 files changed, 18 insertions(+) diff --git a/lib/Travel/Status/DE/HAFAS.pm b/lib/Travel/Status/DE/HAFAS.pm index a0535c3..838bf5e 100644 --- a/lib/Travel/Status/DE/HAFAS.pm +++ b/lib/Travel/Status/DE/HAFAS.pm @@ -569,6 +569,10 @@ None. =item * Class::Accessor(3pm) +=item * DateTime(3pm) + +=item * DateTime::Format::Strptime(3pm) + =item * LWP::UserAgent(3pm) =item * XML::LibXML(3pm) diff --git a/lib/Travel/Status/DE/HAFAS/Result.pm b/lib/Travel/Status/DE/HAFAS/Result.pm index 117e1ea..4921fab 100644 --- a/lib/Travel/Status/DE/HAFAS/Result.pm +++ b/lib/Travel/Status/DE/HAFAS/Result.pm @@ -204,10 +204,24 @@ the platform, time, route and more. =over +=item $result->countdown + +Difference between the time Travel::Status::DE::HAFAS->results +was called first and the arrival/departure time, in minutes. + +=item $result->countdown_sec + +Difference between the time Travel::Status::DE::HAFAS->results +was called first and the arrival/departure time, in seconds. + =item $result->date Arrival/Departure date in "dd.mm.yyyy" format. +=item $result->datetime + +DateTime object holding the arrival/departure date and time. + =item $result->delay Returns the delay in minutes, or undef if it is unknown. -- cgit v1.2.3