public static string?GetDurationString(Instant tillInstant) { Duration timeTillStart = TimeUtils.RoundInstant(tillInstant) - TimeUtils.RoundInstant(TimeUtils.Now); return(TimeUtils.GetDurationString(timeTillStart)); }
public static string?GetDurationString(Instant tillInstant, int roundMinuteTo = 15) { Duration timeTillStart = TimeUtils.RoundInstant(tillInstant, roundMinuteTo) - TimeUtils.RoundInstant(TimeUtils.Now, roundMinuteTo); return(TimeUtils.GetDurationString(timeTillStart)); }