summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorBirte Kristina Friesel <derf@finalrewind.org>2023-12-30 07:21:34 +0100
committerBirte Kristina Friesel <derf@finalrewind.org>2023-12-30 07:21:34 +0100
commit55795b6d09a6b64507fd1c59bbaebb2cba9ce1b9 (patch)
tree4b8a20a4424ffa1f7f5809c7a0e14c5dbb7f538d /bin
parent5c9127df3d10d3a3bd420341c20498ac545ca23e (diff)
hafas: show departure date in connection header
Diffstat (limited to 'bin')
-rwxr-xr-xbin/hafas6
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/hafas b/bin/hafas
index 5be4f19..3a50bf7 100755
--- a/bin/hafas
+++ b/bin/hafas
@@ -217,7 +217,7 @@ sub show_similar_stops {
sub display_occupancy {
my ($occupancy) = @_;
- if (not defined $occupancy) {
+ if ( not defined $occupancy ) {
return q{?};
}
if ( $occupancy == 1 ) {
@@ -325,14 +325,14 @@ for my $res ( $hafas->connections ) {
printf(
"--:-- (%02d:%02d) %s %s %s\n",
$res->duration->in_units( 'hours', 'minutes' ),
- $res->arr->strftime('%H:%M'),
+ $res->arr->strftime(' %H:%M'),
display_occupancies( $res->load ), $glance
);
}
else {
printf(
"%s (%02d:%02d) %s %s %s\n",
- $res->dep->strftime('%H:%M'),
+ $res->dep->strftime('%d.%m. %H:%M'),
$res->duration->in_units( 'hours', 'minutes' ),
$res->arr->strftime('%H:%M'),
display_occupancies( $res->load ),