Open Rails

FormatStrings.FormatApproximateTime Method

[This is preliminary documentation and subject to change.]

Converts duration in floating-point seconds to whole hours and minutes (rounded to nearest).

public static string FormatApproximateTime(
   double clockTimeSeconds
);

Parameters

clockTimeSeconds

Return Value

The time in HH:MM format.

See Also

FormatStrings Class | ORTS.Common Namespace