private Epoch(UnixUtcTime time) { _time = time; }
public static Response IsNotPast(this UnixUtcTime time) { return(time.IsBefore(Clock.UnixUtcNow) ? Response.Errored(ResponseStatus.InvalidState, "Cannot occur at past point in time.") : Response.Success); }
public T At(UnixUtcTime time) { return(_sequence.Where(x => !x.Key.IsAfter(time)) .Select(x => x.Value) .LastOrDefault(_default)); }
public static DateTime ToDateTime(UnixUtcTime time) { return(DateTimeOffset.FromUnixTimeMilliseconds(time.Millis).UtcDateTime); }
public void Add(UnixUtcTime time, T value) { _sequence.Add(time, value); }