C# 클래스 Aspectacular.RelativeTimeSpanExtensions

파일 보기 프로젝트 열기: vgribok/Aspectacular

공개 메소드들

메소드 설명
Add ( this dt, int count, TimeUnits unit ) : System.DateTime
Add ( this dt, int count, TimeUnits unit ) : DateTimeOffset

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.

CalculationParent ( this unit ) : TimeUnits?

Returns higher time Unit in which the given Unit is *repeated within*. This is not a direct hierarchy! Different types of units may have same parent. For example, Month number 1..12 is repeated within a Year, so Month's parent is Year, not quarter. Quarter 1..4 also is repeated within a year, so Quarter's parent is also year. Same goes for Week number 1..52.

Current ( this unit, System.DateTime referenceMoment ) : DateRange
Current ( this unit, 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.

EndOf ( this dt, TimeUnits unit ) : System.DateTime
EndOf ( this dt, TimeUnits unit ) : DateTimeOffset

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.

Future ( this unit, ulong unitCount, System.DateTime referenceMoment ) : DateRange
Future ( this unit, ulong unitCount = 1, 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.

IsMomentInTime ( this unit ) : bool
Next ( this unit, ulong unitCount, System.DateTime referenceMoment ) : DateRange
Next ( this unit, ulong unitCount = 1, 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.

Past ( this unit, ulong unitCount, System.DateTime referenceMoment ) : DateRange
Past ( this unit, ulong unitCount = 1, 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.

Previous ( this unit, ulong unitCount, System.DateTime referenceMoment ) : DateRange
Previous ( this unit, ulong unitCount = 1, 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.

RangeCurrent ( this dt, TimeUnits unit ) : DateRange
RangeCurrent ( this dt, TimeUnits unit ) : 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.

RangeFuture ( this dt, ulong unitCount, TimeUnits unit ) : DateRange
RangeFuture ( this dt, ulong unitCount, TimeUnits unit ) : 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.

RangeNext ( this dt, ulong unitCount, TimeUnits unit ) : DateRange
RangeNext ( this dt, ulong unitCount, TimeUnits unit ) : 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.

RangePast ( this dt, ulong unitCount, TimeUnits unit ) : DateRange
RangePast ( this dt, ulong unitCount, TimeUnits unit ) : 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.

RangePrevious ( this dt, ulong unitCount, TimeUnits unit ) : DateRange
RangePrevious ( this dt, ulong unitCount, TimeUnits unit ) : 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.

RangeToDate ( this dt, TimeUnits unit ) : DateRange
RangeToDate ( this dt, TimeUnits unit ) : 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.

StartOf ( this dt, TimeUnits unit ) : System.DateTime
StartOf ( this dt, TimeUnits unit ) : DateTimeOffset

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.

ToDate ( this unit, System.DateTime referenceMoment ) : DateRange
ToDate ( this unit, 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.

메소드 상세

Add() 공개 정적인 메소드

public static Add ( this dt, int count, TimeUnits unit ) : System.DateTime
dt this
count int
unit TimeUnits
리턴 System.DateTime

Add() 공개 정적인 메소드

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.
public static Add ( this dt, int count, TimeUnits unit ) : DateTimeOffset
dt this
count int
unit TimeUnits
리턴 DateTimeOffset

CalculationParent() 공개 정적인 메소드

Returns higher time Unit in which the given Unit is *repeated within*. This is not a direct hierarchy! Different types of units may have same parent. For example, Month number 1..12 is repeated within a Year, so Month's parent is Year, not quarter. Quarter 1..4 also is repeated within a year, so Quarter's parent is also year. Same goes for Week number 1..52.
public static CalculationParent ( this unit ) : TimeUnits?
unit this
리턴 TimeUnits?

Current() 공개 정적인 메소드

public static Current ( this unit, System.DateTime referenceMoment ) : DateRange
unit this
referenceMoment System.DateTime
리턴 DateRange

Current() 공개 정적인 메소드

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.
public static Current ( this unit, DateTimeOffset referenceMoment = null ) : TimeMomentRange
unit this
referenceMoment DateTimeOffset
리턴 TimeMomentRange

EndOf() 공개 정적인 메소드

public static EndOf ( this dt, TimeUnits unit ) : System.DateTime
dt this
unit TimeUnits
리턴 System.DateTime

EndOf() 공개 정적인 메소드

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.
public static EndOf ( this dt, TimeUnits unit ) : DateTimeOffset
dt this
unit TimeUnits
리턴 DateTimeOffset

Future() 공개 정적인 메소드

public static Future ( this unit, ulong unitCount, System.DateTime referenceMoment ) : DateRange
unit this
unitCount ulong
referenceMoment System.DateTime
리턴 DateRange

Future() 공개 정적인 메소드

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.
public static Future ( this unit, ulong unitCount = 1, DateTimeOffset referenceMoment = null ) : TimeMomentRange
unit this
unitCount ulong
referenceMoment DateTimeOffset
리턴 TimeMomentRange

IsMomentInTime() 공개 정적인 메소드

public static IsMomentInTime ( this unit ) : bool
unit this
리턴 bool

Next() 공개 정적인 메소드

public static Next ( this unit, ulong unitCount, System.DateTime referenceMoment ) : DateRange
unit this
unitCount ulong
referenceMoment System.DateTime
리턴 DateRange

Next() 공개 정적인 메소드

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.
public static Next ( this unit, ulong unitCount = 1, DateTimeOffset referenceMoment = null ) : TimeMomentRange
unit this
unitCount ulong
referenceMoment DateTimeOffset
리턴 TimeMomentRange

Past() 공개 정적인 메소드

public static Past ( this unit, ulong unitCount, System.DateTime referenceMoment ) : DateRange
unit this
unitCount ulong
referenceMoment System.DateTime
리턴 DateRange

Past() 공개 정적인 메소드

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.
public static Past ( this unit, ulong unitCount = 1, DateTimeOffset referenceMoment = null ) : TimeMomentRange
unit this
unitCount ulong
referenceMoment DateTimeOffset
리턴 TimeMomentRange

Previous() 공개 정적인 메소드

public static Previous ( this unit, ulong unitCount, System.DateTime referenceMoment ) : DateRange
unit this
unitCount ulong
referenceMoment System.DateTime
리턴 DateRange

Previous() 공개 정적인 메소드

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.
public static Previous ( this unit, ulong unitCount = 1, DateTimeOffset referenceMoment = null ) : TimeMomentRange
unit this
unitCount ulong
referenceMoment DateTimeOffset
리턴 TimeMomentRange

RangeCurrent() 공개 정적인 메소드

public static RangeCurrent ( this dt, TimeUnits unit ) : DateRange
dt this
unit TimeUnits
리턴 DateRange

RangeCurrent() 공개 정적인 메소드

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.
public static RangeCurrent ( this dt, TimeUnits unit ) : TimeMomentRange
dt this
unit TimeUnits
리턴 TimeMomentRange

RangeFuture() 공개 정적인 메소드

public static RangeFuture ( this dt, ulong unitCount, TimeUnits unit ) : DateRange
dt this
unitCount ulong
unit TimeUnits
리턴 DateRange

RangeFuture() 공개 정적인 메소드

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.
public static RangeFuture ( this dt, ulong unitCount, TimeUnits unit ) : TimeMomentRange
dt this
unitCount ulong
unit TimeUnits
리턴 TimeMomentRange

RangeNext() 공개 정적인 메소드

public static RangeNext ( this dt, ulong unitCount, TimeUnits unit ) : DateRange
dt this
unitCount ulong
unit TimeUnits
리턴 DateRange

RangeNext() 공개 정적인 메소드

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.
public static RangeNext ( this dt, ulong unitCount, TimeUnits unit ) : TimeMomentRange
dt this
unitCount ulong
unit TimeUnits
리턴 TimeMomentRange

RangePast() 공개 정적인 메소드

public static RangePast ( this dt, ulong unitCount, TimeUnits unit ) : DateRange
dt this
unitCount ulong
unit TimeUnits
리턴 DateRange

RangePast() 공개 정적인 메소드

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.
public static RangePast ( this dt, ulong unitCount, TimeUnits unit ) : TimeMomentRange
dt this
unitCount ulong
unit TimeUnits
리턴 TimeMomentRange

RangePrevious() 공개 정적인 메소드

public static RangePrevious ( this dt, ulong unitCount, TimeUnits unit ) : DateRange
dt this
unitCount ulong
unit TimeUnits
리턴 DateRange

RangePrevious() 공개 정적인 메소드

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.
public static RangePrevious ( this dt, ulong unitCount, TimeUnits unit ) : TimeMomentRange
dt this
unitCount ulong
unit TimeUnits
리턴 TimeMomentRange

RangeToDate() 공개 정적인 메소드

public static RangeToDate ( this dt, TimeUnits unit ) : DateRange
dt this
unit TimeUnits
리턴 DateRange

RangeToDate() 공개 정적인 메소드

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.
public static RangeToDate ( this dt, TimeUnits unit ) : TimeMomentRange
dt this
unit TimeUnits
리턴 TimeMomentRange

StartOf() 공개 정적인 메소드

public static StartOf ( this dt, TimeUnits unit ) : System.DateTime
dt this
unit TimeUnits
리턴 System.DateTime

StartOf() 공개 정적인 메소드

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.
public static StartOf ( this dt, TimeUnits unit ) : DateTimeOffset
dt this
unit TimeUnits
리턴 DateTimeOffset

ToDate() 공개 정적인 메소드

public static ToDate ( this unit, System.DateTime referenceMoment ) : DateRange
unit this
referenceMoment System.DateTime
리턴 DateRange

ToDate() 공개 정적인 메소드

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.
public static ToDate ( this unit, DateTimeOffset referenceMoment = null ) : TimeMomentRange
unit this
referenceMoment DateTimeOffset
리턴 TimeMomentRange