front: convert number
to Duration
where appropriate
#10915
Labels
area:front
Work on Standard OSRD Interface modules
kind:enhancement
Improvement of existing features
Description and goal
Many types and functions still use
number
to store durations. Now that we have a properDuration
type (see #8816), it would be nice to convert thesenumber
values toDuration
.Note, we can't do that for auto-generated types.
StdcmPathStep.tolerances
(front: use Duration in StdcmPathStep tolerances #10914)StdcmPathStep.stopFor
ValidStdcmConfig.{gridMarginBefore,gridMarginAfter}
(front: use Duration for OsrdStdcmConfState grid margins #10916)StdcmResultsOperationalPoint.duration
TimesStopsRow
secondsToTimeString()
andtimeStringToSeconds()
Acceptance criteria
.
The text was updated successfully, but these errors were encountered: