diff options
author | Birte Kristina Friesel <derf@finalrewind.org> | 2023-12-29 07:25:53 +0100 |
---|---|---|
committer | Birte Kristina Friesel <derf@finalrewind.org> | 2023-12-29 07:25:53 +0100 |
commit | b3c7a6966e4ee66f24038af681dcf35f90e1d71f (patch) | |
tree | 5180ac7393fe49ea9e3235dafb5c46372ce9453f /bin | |
parent | ad54e0585881edb1844883b6171b692a67e4bff5 (diff) |
hafas-m: trip details: show trip number and date
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/hafas-m | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/bin/hafas-m b/bin/hafas-m index 3f6972c..47dbd07 100755 --- a/bin/hafas-m +++ b/bin/hafas-m @@ -384,12 +384,13 @@ elsif ( $opt{journey} ) { printf( "%s → %s", $result->name, $result->route_end ); if ( $result->number ) { - printf( " | Zug %s", $result->number ); + printf( " / Zug %s", $result->number ); } if ( $result->line_no ) { - printf( " | Linie %s", $result->line_no ); + printf( " / Linie %s", $result->line_no ); } - say q{}; + printf( "\nFahrt %s am %s\n\n", + $result->id, ( $result->route )[0]->sched_dep->strftime('%d.%m.%Y') ); my $delay_len = 0; my $delay_fmt = 0; |