Свойство | Тип | Описание | |
---|---|---|---|
Direction | Timeline | ||
Unit | TimeUnits | ||
UnitCount | ulong |
Метод | Описание | |
---|---|---|
GetDateTimeRange ( System.DateTime referenceMoment ) : DateRange | ||
GetTimeMomentRange ( DateTimeOffset referenceMoment = null ) : TimeMomentRange |
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.
|
|
RelativeTimeSpan ( Timeline direction, TimeUnits unit, ulong unitCount = 1 ) : System |
|
public GetDateTimeRange ( System.DateTime referenceMoment ) : DateRange | ||
referenceMoment | System.DateTime | |
Результат | DateRange |
public GetTimeMomentRange ( DateTimeOffset referenceMoment = null ) : TimeMomentRange | ||
referenceMoment | DateTimeOffset | |
Результат | TimeMomentRange |
public RelativeTimeSpan ( Timeline direction, TimeUnits unit, ulong unitCount = 1 ) : System | ||
direction | Timeline | |
unit | TimeUnits | |
unitCount | ulong | |
Результат | System |