summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
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.