diff options
author | Birte Kristina Friesel <derf@finalrewind.org> | 2023-11-12 09:33:41 +0100 |
---|---|---|
committer | Birte Kristina Friesel <derf@finalrewind.org> | 2023-11-12 09:33:41 +0100 |
commit | 39e8ee04b8f35a0176aa4e4dadb223910c78de6a (patch) | |
tree | 27dbb064dd8acbfacf51cd962842b172fbaf535e /bin/hafas | |
parent | a6068c9a4af9a6ddaa9f16204a1d85828663c90b (diff) |
hafas: Do not show cancelled dep/arr times
Diffstat (limited to 'bin/hafas')
-rwxr-xr-x | bin/hafas | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -330,7 +330,9 @@ for my $res ( $hafas->connections ) { $sec->name, $sec->direction ); printf( "%-5s %-${have_delay}s ab %s%s%s\n", - $sec->dep_datetime->strftime('%H:%M'), + $sec->dep_cancelled + ? '--:--' + : $sec->dep_datetime->strftime('%H:%M'), format_delay( $sec->dep_delay ), $sec->dep_loc->name, $sec->dep_platform ? q{: } : q{}, @@ -338,7 +340,9 @@ for my $res ( $hafas->connections ) { ); printf( "%-5s %-${have_delay}s an %s%s%s\n", - $sec->arr_datetime->strftime('%H:%M'), + $sec->arr_cancelled + ? '--:--' + : $sec->arr_datetime->strftime('%H:%M'), format_delay( $sec->arr_delay ), $sec->arr_loc->name, $sec->arr_platform ? q{: } : q{}, |