Exemple #1
0
        public static string?GetDurationString(Instant tillInstant)
        {
            Duration timeTillStart = TimeUtils.RoundInstant(tillInstant) - TimeUtils.RoundInstant(TimeUtils.Now);

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

            return(TimeUtils.GetDurationString(timeTillStart));
        }