메소드 | 설명 | |
---|---|---|
FromSortableIntDateTime ( this sortableDateTime, DateTimeKind dtKind = DateTimeKind.Unspecified ) : System.DateTime |
Returns DateTime created from an integer in the YYYYMMDD, YYYYMMDDHHmmss, or YYYYMMDDHHmmssFFF format.
|
|
FromSortableIntDateTime ( this sortableDateTime, DateTimeKind dtKind = DateTimeKind.Unspecified ) : DateTime? |
Returns DateTime created from an integer in the YYYYMMDD, YYYYMMDDHHmmss, or YYYYMMDDHHmmssFFF format.
|
|
FromSortableIntTime ( this sortableDateTime, System.DateTime datePart = default(DateTime) ) : System.DateTime |
Returns time value via DateTime result created from integer in the HHmmss or HHmmssFFF format. Optional "FFF" is milliseconds.
|
|
FromSortableIntTime ( this sortableDateTime, System.DateTime datePart = default(DateTime) ) : DateTime? |
Returns time value via DateTime result created from integer in the HHmmss or HHmmssFFF format. Optional "FFF" is milliseconds.
|
|
GoTo ( this dt, bool>.Func |
DateTime loop functional implementation. Continues calling stepFunc while searchFunc keeps returning true: while (!searchFunc(dt)) dt = stepFunc(dt); return dt;
|
|
GoTo ( this dt, bool>.Func |
DateTimeOffset loop functional implementation. Continues calling stepFunc while searchFunc keeps returning true: while (!searchFunc(dt)) dt = stepFunc(dt); return dt;
|
|
IsUtc ( this dto ) : bool |
Returns true if DateTimeOffset represents UTC time.
|
|
PreviousMoment ( this dt ) : System.DateTime |
Subtracts 1 tick from the given time.
|
|
PreviousMoment ( this dt ) : DateTimeOffset |
Subtracts 1 tick from the given time.
|
|
Quarter ( this dt ) : int |
Returns quarter number 1..4
|
|
ToDateTime ( this dto, DateTimeKind kind ) : System.DateTime | ||
ToSortableIntDate ( this dt ) : int |
Converts date part of the date time to integer in the YYYYMMDD format.
|
|
ToSortableIntTime ( this dt, bool includeMilliseconds = false ) : int |
Returns integer in the format of HHmmss or HHmmssFFF. Optional "FFF" is milliseconds.
|
|
ToSortableLongDateTime ( this dt, bool includeMilliseconds = false ) : long |
Returns integer in the format of YYYYMMDDHHmmss or similar with fractional seconds.
|
|
ToSortableLongTime ( this dt, bool includeMilliseconds = false ) : long |
Returns integer in the format of HHmmss or HHmmssFFF. Optional "FFF" is milliseconds.
|
|
WeekOfYear ( this dt, CalendarWeekRule whatIsFirstWeek = CalendarWeekRule.FirstFourDayWeek ) : int |
Returns ISO-8601 week number in the year.
|
public static FromSortableIntDateTime ( this sortableDateTime, DateTimeKind dtKind = DateTimeKind.Unspecified ) : System.DateTime | ||
sortableDateTime | this | |
dtKind | DateTimeKind | |
리턴 | System.DateTime |
public static FromSortableIntDateTime ( this sortableDateTime, DateTimeKind dtKind = DateTimeKind.Unspecified ) : DateTime? | ||
sortableDateTime | this | |
dtKind | DateTimeKind | |
리턴 | DateTime? |
public static FromSortableIntTime ( this sortableDateTime, System.DateTime datePart = default(DateTime) ) : System.DateTime | ||
sortableDateTime | this | |
datePart | System.DateTime | Date to which time will be appended. |
리턴 | System.DateTime |
public static FromSortableIntTime ( this sortableDateTime, System.DateTime datePart = default(DateTime) ) : DateTime? | ||
sortableDateTime | this | |
datePart | System.DateTime | Date to which time will be appended. |
리턴 | DateTime? |
public static GoTo ( this dt, bool>.Func |
||
dt | this | |
stopCondFunc | bool>.Func | |
stepFunc | DateTime>.Func | |
리턴 | System.DateTime |
public static GoTo ( this dt, bool>.Func |
||
dt | this | |
stopCondFunc | bool>.Func | |
stepFunc | DateTimeOffset>.Func | |
리턴 | DateTimeOffset |
public static PreviousMoment ( this dt ) : System.DateTime | ||
dt | this | |
리턴 | System.DateTime |
public static PreviousMoment ( this dt ) : DateTimeOffset | ||
dt | this | |
리턴 | DateTimeOffset |
public static ToDateTime ( this dto, DateTimeKind kind ) : System.DateTime | ||
dto | this | |
kind | DateTimeKind | |
리턴 | System.DateTime |
public static ToSortableIntTime ( this dt, bool includeMilliseconds = false ) : int | ||
dt | this | |
includeMilliseconds | bool | |
리턴 | int |
public static ToSortableLongDateTime ( this dt, bool includeMilliseconds = false ) : long | ||
dt | this | |
includeMilliseconds | bool | |
리턴 | long |
public static ToSortableLongTime ( this dt, bool includeMilliseconds = false ) : long | ||
dt | this | |
includeMilliseconds | bool | |
리턴 | long |
public static WeekOfYear ( this dt, CalendarWeekRule whatIsFirstWeek = CalendarWeekRule.FirstFourDayWeek ) : int | ||
dt | this | |
whatIsFirstWeek | CalendarWeekRule | /// Tells whether the first week can be a) any incomplete week, b) a week with 4 days or /// more, or c) full week only. /// |
리턴 | int |