public static DateRange RangePast(this DateTime? dt, ulong unitCount, TimeUnits unit) { return unit.Past(unitCount, dt); }
public static DateRange RangePast(this DateTime?dt, ulong unitCount, TimeUnits unit) { return(unit.Past(unitCount, dt)); }
/// <summary> /// Warning: bug found. dt.Offset may be incorrect as offsets could be different if range crosses daylight saving switch, i.e. October - December, or month of November in the EST USA. /// </summary> /// <param name="dt"></param> /// <param name="unitCount"></param> /// <param name="unit"></param> /// <returns></returns> public static TimeMomentRange RangePast(this DateTimeOffset? dt, ulong unitCount, TimeUnits unit) { return unit.Past(unitCount, dt); }
/// <summary> /// Warning: bug found. dt.Offset may be incorrect as offsets could be different if range crosses daylight saving switch, i.e. October - December, or month of November in the EST USA. /// </summary> /// <param name="dt"></param> /// <param name="unitCount"></param> /// <param name="unit"></param> /// <returns></returns> public static TimeMomentRange RangePast(this DateTimeOffset?dt, ulong unitCount, TimeUnits unit) { return(unit.Past(unitCount, dt)); }