Skip to content

SystemDateTime

API reference for SystemDateTime.

Properties

PropertyTypeAccess
DateSystemDateTimeget
Dayintget
DayOfWeekSystemDayOfWeekget
DayOfYearintget
Hourintget
KindSystemDateTimeKindget
MaxValueSystemDateTimeget
Millisecondintget
Minuteintget
MinValueSystemDateTimeget
Monthintget
NowSystemDateTimeget
Secondintget
TicksSystemInt64get
TimeOfDaySystemTimeSpanget
TodaySystemDateTimeget
UtcNowSystemDateTimeget
Yearintget

Methods

Add

Add(value: SystemTimeSpan) -> SystemDateTime

AddDays

AddDays(value: double) -> SystemDateTime

AddHours

AddHours(value: double) -> SystemDateTime

AddMilliseconds

AddMilliseconds(value: double) -> SystemDateTime

AddMinutes

AddMinutes(value: double) -> SystemDateTime

AddMonths

AddMonths(months: int) -> SystemDateTime

AddSeconds

AddSeconds(value: double) -> SystemDateTime

AddTicks

AddTicks(value: SystemInt64) -> SystemDateTime

AddYears

AddYears(value: int) -> SystemDateTime

Compare

static Compare(t1: SystemDateTime, t2: SystemDateTime) -> int

CompareTo

CompareTo(value: SystemDateTime) -> int
CompareTo(value: object) -> int

DaysInMonth

static DaysInMonth(year: int, month: int) -> int

Equals

static Equals(t1: SystemDateTime, t2: SystemDateTime) -> bool
Equals(value: SystemDateTime) -> bool
Equals(value: object) -> bool

FromBinary

static FromBinary(dateData: SystemInt64) -> SystemDateTime

FromFileTime

static FromFileTime(fileTime: SystemInt64) -> SystemDateTime

FromFileTimeUtc

static FromFileTimeUtc(fileTime: SystemInt64) -> SystemDateTime

FromOADate

static FromOADate(d: double) -> SystemDateTime

GetDateTimeFormats

GetDateTimeFormats(format: char, provider: SystemIFormatProvider) -> string[]
GetDateTimeFormats(format: char) -> string[]
GetDateTimeFormats(provider: SystemIFormatProvider) -> string[]
GetDateTimeFormats() -> string[]

GetHashCode

GetHashCode() -> int

GetType

GetType() -> SystemType

IsDaylightSavingTime

IsDaylightSavingTime() -> bool

IsLeapYear

static IsLeapYear(year: int) -> bool

new

static new(year: int, month: int, day: int, calendar: SystemGlobalizationCalendar) -> SystemDateTime
static new(year: int, month: int, day: int, hour: int, minute: int, second: int, kind: SystemDateTimeKind) -> SystemDateTime
static new(year: int, month: int, day: int, hour: int, minute: int, second: int, calendar: SystemGlobalizationCalendar) -> SystemDateTime
static new(year: int, month: int, day: int, hour: int, minute: int, second: int, millisecond: int, kind: SystemDateTimeKind) -> SystemDateTime
static new(year: int, month: int, day: int, hour: int, minute: int, second: int, millisecond: int, calendar: SystemGlobalizationCalendar, kind: SystemDateTimeKind) -> SystemDateTime
static new(year: int, month: int, day: int, hour: int, minute: int, second: int, millisecond: int, calendar: SystemGlobalizationCalendar) -> SystemDateTime
static new(year: int, month: int, day: int, hour: int, minute: int, second: int, millisecond: int) -> SystemDateTime
static new(year: int, month: int, day: int, hour: int, minute: int, second: int) -> SystemDateTime
static new(year: int, month: int, day: int) -> SystemDateTime
static new(ticks: SystemInt64, kind: SystemDateTimeKind) -> SystemDateTime
static new(ticks: SystemInt64) -> SystemDateTime

Parse

static Parse(s: string, provider: SystemIFormatProvider, styles: SystemGlobalizationDateTimeStyles) -> SystemDateTime
static Parse(s: string, provider: SystemIFormatProvider) -> SystemDateTime
static Parse(s: string) -> SystemDateTime

ParseExact

static ParseExact(s: string, formats: string[], provider: SystemIFormatProvider, style: SystemGlobalizationDateTimeStyles) -> SystemDateTime
static ParseExact(s: string, format: string, provider: SystemIFormatProvider, style: SystemGlobalizationDateTimeStyles) -> SystemDateTime
static ParseExact(s: string, format: string, provider: SystemIFormatProvider) -> SystemDateTime

SpecifyKind

static SpecifyKind(value: SystemDateTime, kind: SystemDateTimeKind) -> SystemDateTime

Subtract

Subtract(value: SystemDateTime) -> SystemTimeSpan
Subtract(value: SystemTimeSpan) -> SystemDateTime

ToBinary

ToBinary() -> SystemInt64

ToFileTime

ToFileTime() -> SystemInt64

ToFileTimeUtc

ToFileTimeUtc() -> SystemInt64

ToLocalTime

ToLocalTime() -> SystemDateTime

ToLongDateString

ToLongDateString() -> string

ToLongTimeString

ToLongTimeString() -> string

ToOADate

ToOADate() -> double

ToShortDateString

ToShortDateString() -> string

ToShortTimeString

ToShortTimeString() -> string

ToString

ToString(provider: SystemIFormatProvider) -> string
ToString() -> string
ToString(format: string, provider: SystemIFormatProvider) -> string
ToString(format: string) -> string

ToUniversalTime

ToUniversalTime() -> SystemDateTime

TryParse

static TryParse(s: string, result: SystemDateTime) -> bool
static TryParse(s: string, provider: SystemIFormatProvider, styles: SystemGlobalizationDateTimeStyles, result: SystemDateTime) -> bool

TryParseExact

static TryParseExact(s: string, formats: string[], provider: SystemIFormatProvider, style: SystemGlobalizationDateTimeStyles, result: SystemDateTime) -> bool
static TryParseExact(s: string, format: string, provider: SystemIFormatProvider, style: SystemGlobalizationDateTimeStyles, result: SystemDateTime) -> bool