コード例 #1
0
 public static DateRange RangeToDate(this DateTime? dt, TimeUnits unit)
 {
     return unit.ToDate(dt);
 }
コード例 #2
0
 public static DateRange RangeToDate(this DateTime?dt, TimeUnits unit)
 {
     return(unit.ToDate(dt));
 }
コード例 #3
0
 /// <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);
 }
コード例 #4
0
 /// <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));
 }