public static DateTime PreviousMoment(this DateTime dt) { return new DateTime(dt.Ticks - 1, dt.Kind); }