SystemDateTime
API reference for SystemDateTime.
Properties
| Property | Type | Access |
|---|---|---|
| Date | SystemDateTime | get |
| Day | int | get |
| DayOfWeek | SystemDayOfWeek | get |
| DayOfYear | int | get |
| Hour | int | get |
| Kind | SystemDateTimeKind | get |
| MaxValue | SystemDateTime | get |
| Millisecond | int | get |
| Minute | int | get |
| MinValue | SystemDateTime | get |
| Month | int | get |
| Now | SystemDateTime | get |
| Second | int | get |
| Ticks | SystemInt64 | get |
| TimeOfDay | SystemTimeSpan | get |
| Today | SystemDateTime | get |
| UtcNow | SystemDateTime | get |
| Year | int | get |
Methods
Add
Add(value: SystemTimeSpan) -> SystemDateTimeAddDays
AddDays(value: double) -> SystemDateTimeAddHours
AddHours(value: double) -> SystemDateTimeAddMilliseconds
AddMilliseconds(value: double) -> SystemDateTimeAddMinutes
AddMinutes(value: double) -> SystemDateTimeAddMonths
AddMonths(months: int) -> SystemDateTimeAddSeconds
AddSeconds(value: double) -> SystemDateTimeAddTicks
AddTicks(value: SystemInt64) -> SystemDateTimeAddYears
AddYears(value: int) -> SystemDateTimeCompare
static Compare(t1: SystemDateTime, t2: SystemDateTime) -> intCompareTo
CompareTo(value: SystemDateTime) -> intCompareTo(value: object) -> intDaysInMonth
static DaysInMonth(year: int, month: int) -> intEquals
static Equals(t1: SystemDateTime, t2: SystemDateTime) -> boolEquals(value: SystemDateTime) -> boolEquals(value: object) -> boolFromBinary
static FromBinary(dateData: SystemInt64) -> SystemDateTimeFromFileTime
static FromFileTime(fileTime: SystemInt64) -> SystemDateTimeFromFileTimeUtc
static FromFileTimeUtc(fileTime: SystemInt64) -> SystemDateTimeFromOADate
static FromOADate(d: double) -> SystemDateTimeGetDateTimeFormats
GetDateTimeFormats(format: char, provider: SystemIFormatProvider) -> string[]GetDateTimeFormats(format: char) -> string[]GetDateTimeFormats(provider: SystemIFormatProvider) -> string[]GetDateTimeFormats() -> string[]GetHashCode
GetHashCode() -> intGetType
GetType() -> SystemTypeIsDaylightSavingTime
IsDaylightSavingTime() -> boolIsLeapYear
static IsLeapYear(year: int) -> boolnew
static new(year: int, month: int, day: int, calendar: SystemGlobalizationCalendar) -> SystemDateTimestatic new(year: int, month: int, day: int, hour: int, minute: int, second: int, kind: SystemDateTimeKind) -> SystemDateTimestatic new(year: int, month: int, day: int, hour: int, minute: int, second: int, calendar: SystemGlobalizationCalendar) -> SystemDateTimestatic new(year: int, month: int, day: int, hour: int, minute: int, second: int, millisecond: int, kind: SystemDateTimeKind) -> SystemDateTimestatic new(year: int, month: int, day: int, hour: int, minute: int, second: int, millisecond: int, calendar: SystemGlobalizationCalendar, kind: SystemDateTimeKind) -> SystemDateTimestatic new(year: int, month: int, day: int, hour: int, minute: int, second: int, millisecond: int, calendar: SystemGlobalizationCalendar) -> SystemDateTimestatic new(year: int, month: int, day: int, hour: int, minute: int, second: int, millisecond: int) -> SystemDateTimestatic new(year: int, month: int, day: int, hour: int, minute: int, second: int) -> SystemDateTimestatic new(year: int, month: int, day: int) -> SystemDateTimestatic new(ticks: SystemInt64, kind: SystemDateTimeKind) -> SystemDateTimestatic new(ticks: SystemInt64) -> SystemDateTimeParse
static Parse(s: string, provider: SystemIFormatProvider, styles: SystemGlobalizationDateTimeStyles) -> SystemDateTimestatic Parse(s: string, provider: SystemIFormatProvider) -> SystemDateTimestatic Parse(s: string) -> SystemDateTimeParseExact
static ParseExact(s: string, formats: string[], provider: SystemIFormatProvider, style: SystemGlobalizationDateTimeStyles) -> SystemDateTimestatic ParseExact(s: string, format: string, provider: SystemIFormatProvider, style: SystemGlobalizationDateTimeStyles) -> SystemDateTimestatic ParseExact(s: string, format: string, provider: SystemIFormatProvider) -> SystemDateTimeSpecifyKind
static SpecifyKind(value: SystemDateTime, kind: SystemDateTimeKind) -> SystemDateTimeSubtract
Subtract(value: SystemDateTime) -> SystemTimeSpanSubtract(value: SystemTimeSpan) -> SystemDateTimeToBinary
ToBinary() -> SystemInt64ToFileTime
ToFileTime() -> SystemInt64ToFileTimeUtc
ToFileTimeUtc() -> SystemInt64ToLocalTime
ToLocalTime() -> SystemDateTimeToLongDateString
ToLongDateString() -> stringToLongTimeString
ToLongTimeString() -> stringToOADate
ToOADate() -> doubleToShortDateString
ToShortDateString() -> stringToShortTimeString
ToShortTimeString() -> stringToString
ToString(provider: SystemIFormatProvider) -> stringToString() -> stringToString(format: string, provider: SystemIFormatProvider) -> stringToString(format: string) -> stringToUniversalTime
ToUniversalTime() -> SystemDateTimeTryParse
static TryParse(s: string, result: SystemDateTime) -> boolstatic TryParse(s: string, provider: SystemIFormatProvider, styles: SystemGlobalizationDateTimeStyles, result: SystemDateTime) -> boolTryParseExact
static TryParseExact(s: string, formats: string[], provider: SystemIFormatProvider, style: SystemGlobalizationDateTimeStyles, result: SystemDateTime) -> boolstatic TryParseExact(s: string, format: string, provider: SystemIFormatProvider, style: SystemGlobalizationDateTimeStyles, result: SystemDateTime) -> bool