summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2015-12-21 23:12:30 +0100
committerDaniel Friesel <derf@finalrewind.org>2015-12-21 23:12:30 +0100
commit910b35eee7e86cd7c0de3ec4d288e5e5423c4709 (patch)
tree1a476b5a44318231aaf0164f20e8a3f7b64b76f6 /lib
parent702918a5e19153c1de8af669743eed8bb46f3487 (diff)
documentation
Diffstat (limited to 'lib')
-rw-r--r--lib/Travel/Status/DE/HAFAS.pm4
-rw-r--r--lib/Travel/Status/DE/HAFAS/Result.pm14
2 files changed, 18 insertions, 0 deletions
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.