public static DateRange RangePrevious(this DateTime? dt, ulong unitCount, TimeUnits unit) { return unit.Previous(unitCount, dt); }
public static DateRange RangePrevious(this DateTime?dt, ulong unitCount, TimeUnits unit) { return(unit.Previous(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 RangePrevious(this DateTimeOffset? dt, ulong unitCount, TimeUnits unit) { return unit.Previous(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 RangePrevious(this DateTimeOffset?dt, ulong unitCount, TimeUnits unit) { return(unit.Previous(unitCount, dt)); }