mirror of
https://github.com/tonytins/amtkstat.git
synced 2026-10-24 05:32:54 -04:00
Added handling for stale trains
- Renamed TrainLateness to LateTrain
This commit is contained in:
parent
e0077ec13b
commit
f8eef909d2
5 changed files with 72 additions and 17 deletions
|
|
@ -49,7 +49,7 @@ struct AmtrakDateFormatting {
|
|||
}
|
||||
|
||||
|
||||
func isOnTime(actual: String?, scheduled: String?) -> TrainLateness {
|
||||
func isOnTime(actual: String?, scheduled: String?) -> LateTrain {
|
||||
|
||||
guard
|
||||
let actualDate = parsedDate(from: actual),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue