public static DateRange RangeToDate(this DateTime? dt, TimeUnits unit) { return unit.ToDate(dt); }
public static DateRange RangeToDate(this DateTime?dt, TimeUnits unit) { return(unit.ToDate(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="unit"></param> /// <returns></returns> public static TimeMomentRange RangeToDate(this DateTimeOffset? dt, TimeUnits unit) { return unit.ToDate(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="unit"></param> /// <returns></returns> public static TimeMomentRange RangeToDate(this DateTimeOffset?dt, TimeUnits unit) { return(unit.ToDate(dt)); }