DateTime

Overview

DateTime type used to store and work with date/time values.

Location

 

constructor

Creates a default datetime object with the "MinValue" as value.

 

constructor

 

DateTime()

 

init()

 

DateTime()

constructor (Int32, Int32, Int32)

Creates a new object with a given date.

 

constructor(aYear: Int32; aMonth: Int32; aDay: Int32)

 

DateTime(Int32 aYear, Int32 aMonth, Int32 aDay)

 

init(_ aYear: Int32, _ aMonth: Int32, _ aDay: Int32)

 

DateTime(Int32 aYear, Int32 aMonth, Int32 aDay)

Parameters:

  • aYear:
  • aMonth:
  • aDay:

constructor (Int32, Int32, Int32, Int32, Int32)

Creates a new object with a given date and time.

 

constructor(aYear: Int32; aMonth: Int32; aDay: Int32; anHour: Int32; aMinute: Int32)

 

DateTime(Int32 aYear, Int32 aMonth, Int32 aDay, Int32 anHour, Int32 aMinute)

 

init(_ aYear: Int32, _ aMonth: Int32, _ aDay: Int32, _ anHour: Int32, _ aMinute: Int32)

 

DateTime(Int32 aYear, Int32 aMonth, Int32 aDay, Int32 anHour, Int32 aMinute)

Parameters:

  • aYear:
  • aMonth:
  • aDay:
  • anHour:
  • aMinute:

constructor (Int32, Int32, Int32, Int32, Int32, Int32)

Creates a new object with a given date and time.

 

constructor(aYear: Int32; aMonth: Int32; aDay: Int32; anHour: Int32; aMinute: Int32; aSecond: Int32)

 

DateTime(Int32 aYear, Int32 aMonth, Int32 aDay, Int32 anHour, Int32 aMinute, Int32 aSecond)

 

init(_ aYear: Int32, _ aMonth: Int32, _ aDay: Int32, _ anHour: Int32, _ aMinute: Int32, _ aSecond: Int32)

 

DateTime(Int32 aYear, Int32 aMonth, Int32 aDay, Int32 anHour, Int32 aMinute, Int32 aSecond)

Parameters:

  • aYear:
  • aMonth:
  • aDay:
  • anHour:
  • aMinute:
  • aSecond:

constructor (Int32, Int32, Int32, Int32, Int32, Int32, Int32)

Creates a new object with a given date and time.

 

constructor(aYear: Int32; aMonth: Int32; aDay: Int32; anHour: Int32; aMinute: Int32; aSecond: Int32; aMillisecond: Int32)

 

DateTime(Int32 aYear, Int32 aMonth, Int32 aDay, Int32 anHour, Int32 aMinute, Int32 aSecond, Int32 aMillisecond)

 

init(_ aYear: Int32, _ aMonth: Int32, _ aDay: Int32, _ anHour: Int32, _ aMinute: Int32, _ aSecond: Int32, _ aMillisecond: Int32)

 

DateTime(Int32 aYear, Int32 aMonth, Int32 aDay, Int32 anHour, Int32 aMinute, Int32 aSecond, Int32 aMillisecond)

Parameters:

  • aYear:
  • aMonth:
  • aDay:
  • anHour:
  • aMinute:
  • aSecond:
  • aMillisecond:

constructor (Int64)

Creates a new object given the nr of ticks.

 

constructor(aTicks: Int64)

 

DateTime(Int64 aTicks)

 

init(_ aTicks: Int64)

 

DateTime(Int64 aTicks)

Parameters:

  • aTicks:

AddDays

Adds a nr of days and returns a new datetime.

 

method AddDays(Value: Int32): DateTime

 

DateTime AddDays(Int32 Value)

 

func AddDays(_ Value: Int32) -> DateTime

 

DateTime AddDays(Int32 Value)

Parameters:

  • Value:

AddHours

Adds a nr of hours and returns a new datetime.

 

method AddHours(Value: Int32): DateTime

 

DateTime AddHours(Int32 Value)

 

func AddHours(_ Value: Int32) -> DateTime

 

DateTime AddHours(Int32 Value)

Parameters:

  • Value:

AddMilliseconds

Adds a nr of msec and returns a new datetime.

 

method AddMilliseconds(Value: Int32): DateTime

 

DateTime AddMilliseconds(Int32 Value)

 

func AddMilliseconds(_ Value: Int32) -> DateTime

 

DateTime AddMilliseconds(Int32 Value)

Parameters:

  • Value:

AddMinutes

Adds a nr of minutes and returns a new datetime.

 

method AddMinutes(Value: Int32): DateTime

 

DateTime AddMinutes(Int32 Value)

 

func AddMinutes(_ Value: Int32) -> DateTime

 

DateTime AddMinutes(Int32 Value)

Parameters:

  • Value:

AddMonths

Adds a nr of months and returns a new datetime.

 

method AddMonths(Value: Int32): DateTime

 

DateTime AddMonths(Int32 Value)

 

func AddMonths(_ Value: Int32) -> DateTime

 

DateTime AddMonths(Int32 Value)

Parameters:

  • Value:

AddSeconds

Adds a nr of seconds and returns a new datetime.

 

method AddSeconds(Value: Int32): DateTime

 

DateTime AddSeconds(Int32 Value)

 

func AddSeconds(_ Value: Int32) -> DateTime

 

DateTime AddSeconds(Int32 Value)

Parameters:

  • Value:

AddTicks

Adds a nr of ticks and returns a new datetime.

 

method AddTicks(Value: Int64): DateTime

 

DateTime AddTicks(Int64 Value)

 

func AddTicks(_ Value: Int64) -> DateTime

 

DateTime AddTicks(Int64 Value)

Parameters:

  • Value:

AddYears

Adds a nr of years and returns a new datetime.

 

method AddYears(Value: Int32): DateTime

 

DateTime AddYears(Int32 Value)

 

func AddYears(_ Value: Int32) -> DateTime

 

DateTime AddYears(Int32 Value)

Parameters:

  • Value:

CompareTo

Compares this date, and returns 0 if the same, -1 if less, 1 if more.

 

method CompareTo(Value: DateTime): Int32

 

Int32 CompareTo(DateTime Value)

 

func CompareTo(_ Value: DateTime) -> Int32

 

Int32 CompareTo(DateTime Value)

Parameters:

  • Value:

Date

Returns the date without time part.

 

property Date: DateTime read;

 

DateTime Date { get; }

 

var Date: DateTime { get{} }

 

DateTime Date { __get; }

Day

Returns the day of the month (1..31)

 

property Day: Int32 read;

 

Int32 Day { get; }

 

var Day: Int32 { get{} }

 

Int32 Day { __get; }

DayOfWeek

Returns the day of the week (1..7)

 

property DayOfWeek: Int32 read;

 

Int32 DayOfWeek { get; }

 

var DayOfWeek: Int32 { get{} }

 

Int32 DayOfWeek { __get; }

Equals  override virtual

Returns true if the target object matches this one, by default compares the reference.

 

method Equals(obj: Object): Boolean

 

Boolean Equals(Object obj)

 

func Equals(_ obj: Object) -> Boolean

 

Boolean Equals(Object obj)

Parameters:

  • obj: the reference to compare this with.

Finalize  protected virtual    (declared in Object)

Finalizer implementation. If not overriden it's not called at all, the runtime checks if there is an override before calling a finalizer.

 

method Finalize

 

void Finalize()

 

func Finalize()

 

void Finalize()

FromFileTime Windows

Converts a windows filetime to datetime.

 

class method FromFileTime(aFileTime: FILETIME): DateTime

 

static DateTime FromFileTime(FILETIME aFileTime)

 

static func FromFileTime(_ aFileTime: FILETIME) -> DateTime

 

static DateTime FromFileTime(FILETIME aFileTime)

Parameters:

  • aFileTime:

FromOleDate Android, iOS, iOS Simulator, macOS, tvOS, tvOS Simulator, Ubuntu, UIKit for Mac, watchOS Simulator, watchOS-arm64_32, watchOS-armv7k, WebAssembly, Windows

Converts an OLE date (double) to DateTime.

 

class method FromOleDate(aDate: Double): DateTime

 

static DateTime FromOleDate(Double aDate)

 

static func FromOleDate(_ aDate: Double) -> DateTime

 

static DateTime FromOleDate(Double aDate)

Parameters:

  • aDate:

FromSystemTime Windows

Converts a windows system time to Datetime.

 

class method FromSystemTime(aFileTime: SYSTEMTIME): DateTime

 

static DateTime FromSystemTime(SYSTEMTIME aFileTime)

 

static func FromSystemTime(_ aFileTime: SYSTEMTIME) -> DateTime

 

static DateTime FromSystemTime(SYSTEMTIME aFileTime)

Parameters:

  • aFileTime:

FromUnixTime Android, iOS, iOS Simulator, macOS, tvOS, tvOS Simulator, Ubuntu, UIKit for Mac, watchOS, watchOS Simulator

Converts a unix timestamp to Datetime.

 

class method FromUnixTime(aStruct: __struct_timespec): DateTime

 

static DateTime FromUnixTime(__struct_timespec aStruct)

 

static func FromUnixTime(_ aStruct: __struct_timespec) -> DateTime

 

static DateTime FromUnixTime(__struct_timespec aStruct)

Parameters:

  • aStruct:

FromUnixTimeUTC Android, iOS, iOS Simulator, macOS, tvOS, tvOS Simulator, Ubuntu, UIKit for Mac, watchOS, watchOS Simulator

Converts a unix timestamp to Datetime, presume in UTC.

 

class method FromUnixTimeUTC(aStruct: __struct_timespec): DateTime

 

static DateTime FromUnixTimeUTC(__struct_timespec aStruct)

 

static func FromUnixTimeUTC(_ aStruct: __struct_timespec) -> DateTime

 

static DateTime FromUnixTimeUTC(__struct_timespec aStruct)

Parameters:

  • aStruct:

GetHashCode  virtual    (declared in Object)

Returns a hashcode for this object. Overriden implementations should make sure that the number returned here is constant given the same object.

 

method GetHashCode: Int32

 

Int32 GetHashCode()

 

func GetHashCode() -> Int32

 

Int32 GetHashCode()

GetType    (declared in Object)

Returns the actual type of this class

 

method GetType: Type

 

Type GetType()

 

func GetType() -> Type

 

Type GetType()

Hour

Returns the hour (0..23)

 

property Hour: Int32 read;

 

Int32 Hour { get; }

 

var Hour: Int32 { get{} }

 

Int32 Hour { __get; }

isLeapYear

Check if the year is a leap year.

 

class method isLeapYear(Value: Int32): Boolean

 

static Boolean isLeapYear(Int32 Value)

 

static func isLeapYear(_ Value: Int32) -> Boolean

 

static Boolean isLeapYear(Int32 Value)

Parameters:

  • Value:

MaxYear

Max year.

 

const MaxYear: Int32 = 10000;

 

const Int32 MaxYear = 10000

 

static let MaxYear: Int32 = 10000

 

static final Int32 MaxYear = 10000

Milliseconds

Returns the miliseconds in this datetime.

 

property Milliseconds: Int32 read;

 

Int32 Milliseconds { get; }

 

var Milliseconds: Int32 { get{} }

 

Int32 Milliseconds { __get; }

Minute

Returns the minutes in this datetime.

 

property Minute: Int32 read;

 

Int32 Minute { get; }

 

var Minute: Int32 { get{} }

 

Int32 Minute { __get; }

Month

Returns the month in this datetime.

 

property Month: Int32 read;

 

Int32 Month { get; }

 

var Month: Int32 { get{} }

 

Int32 Month { __get; }

Now

Returns the current DateTime.

 

class property Now: DateTime read;

 

class DateTime Now { get; }

 

static var Now: DateTime { get{} }

 

class DateTime Now { __get; }

ReferenceEquals    (declared in Object)

Compares two references for equivalence (even if they have an equals operator)

 

class method ReferenceEquals(a: Object; b: Object): Boolean

 

static Boolean ReferenceEquals(Object a, Object b)

 

static func ReferenceEquals(_ a: Object, _ b: Object) -> Boolean

 

static Boolean ReferenceEquals(Object a, Object b)

Parameters:

  • a: left value
  • b: right value

Second

Returns the seconds in this datetime.

 

property Second: Int32 read;

 

Int32 Second { get; }

 

var Second: Int32 { get{} }

 

Int32 Second { __get; }

Ticks

Returns the datetime as Ticks.

 

property Ticks: Int64 read;

 

Int64 Ticks { get; }

 

var Ticks: Int64 { get{} }

 

Int64 Ticks { __get; }

Today

Returns the current date without time part.

 

class property Today: DateTime read;

 

class DateTime Today { get; }

 

static var Today: DateTime { get{} }

 

class DateTime Today { __get; }

ToOleDate Android, iOS, iOS Simulator, macOS, tvOS, tvOS Simulator, Ubuntu, UIKit for Mac, watchOS Simulator, watchOS-arm64_32, watchOS-armv7k, WebAssembly, Windows

Convert a datetime to Ole date (double).

 

class method ToOleDate(aDate: DateTime): Double

 

static Double ToOleDate(DateTime aDate)

 

static func ToOleDate(_ aDate: DateTime) -> Double

 

static Double ToOleDate(DateTime aDate)

Parameters:

  • aDate:

ToString  override virtual

Convert this datetime to string.

 

method ToString: String

 

String ToString()

 

func ToString() -> String

 

String ToString()

ToSystemTime Windows

Convert this value to a System datetime.

 

method ToSystemTime: SYSTEMTIME

 

SYSTEMTIME ToSystemTime()

 

func ToSystemTime() -> SYSTEMTIME

 

SYSTEMTIME ToSystemTime()

ToSystemTime (DateTime): SYSTEMTIME Windows

Convert this value to a System datetime.

 

class method ToSystemTime(aDateTime: DateTime): SYSTEMTIME

 

static SYSTEMTIME ToSystemTime(DateTime aDateTime)

 

static func ToSystemTime(_ aDateTime: DateTime) -> SYSTEMTIME

 

static SYSTEMTIME ToSystemTime(DateTime aDateTime)

Parameters:

  • aDateTime:

UtcNow

Returns the current UTC datetime.

 

class property UtcNow: DateTime read;

 

class DateTime UtcNow { get; }

 

static var UtcNow: DateTime { get{} }

 

class DateTime UtcNow { __get; }

Year

Returns the year in this Datetime.

 

property Year: Int32 read;

 

Int32 Year { get; }

 

var Year: Int32 { get{} }

 

Int32 Year { __get; }

 

MaxYear

Max year.

 

const MaxYear: Int32 = 10000;

 

const Int32 MaxYear = 10000

 

static let MaxYear: Int32 = 10000

 

static final Int32 MaxYear = 10000

 

Date

Returns the date without time part.

 

property Date: DateTime read;

 

DateTime Date { get; }

 

var Date: DateTime { get{} }

 

DateTime Date { __get; }

Day

Returns the day of the month (1..31)

 

property Day: Int32 read;

 

Int32 Day { get; }

 

var Day: Int32 { get{} }

 

Int32 Day { __get; }

DayOfWeek

Returns the day of the week (1..7)

 

property DayOfWeek: Int32 read;

 

Int32 DayOfWeek { get; }

 

var DayOfWeek: Int32 { get{} }

 

Int32 DayOfWeek { __get; }

Hour

Returns the hour (0..23)

 

property Hour: Int32 read;

 

Int32 Hour { get; }

 

var Hour: Int32 { get{} }

 

Int32 Hour { __get; }

Milliseconds

Returns the miliseconds in this datetime.

 

property Milliseconds: Int32 read;

 

Int32 Milliseconds { get; }

 

var Milliseconds: Int32 { get{} }

 

Int32 Milliseconds { __get; }

Minute

Returns the minutes in this datetime.

 

property Minute: Int32 read;

 

Int32 Minute { get; }

 

var Minute: Int32 { get{} }

 

Int32 Minute { __get; }

Month

Returns the month in this datetime.

 

property Month: Int32 read;

 

Int32 Month { get; }

 

var Month: Int32 { get{} }

 

Int32 Month { __get; }

Second

Returns the seconds in this datetime.

 

property Second: Int32 read;

 

Int32 Second { get; }

 

var Second: Int32 { get{} }

 

Int32 Second { __get; }

Ticks

Returns the datetime as Ticks.

 

property Ticks: Int64 read;

 

Int64 Ticks { get; }

 

var Ticks: Int64 { get{} }

 

Int64 Ticks { __get; }

Year

Returns the year in this Datetime.

 

property Year: Int32 read;

 

Int32 Year { get; }

 

var Year: Int32 { get{} }

 

Int32 Year { __get; }

Now

Returns the current DateTime.

 

class property Now: DateTime read;

 

class DateTime Now { get; }

 

static var Now: DateTime { get{} }

 

class DateTime Now { __get; }

Today

Returns the current date without time part.

 

class property Today: DateTime read;

 

class DateTime Today { get; }

 

static var Today: DateTime { get{} }

 

class DateTime Today { __get; }

UtcNow

Returns the current UTC datetime.

 

class property UtcNow: DateTime read;

 

class DateTime UtcNow { get; }

 

static var UtcNow: DateTime { get{} }

 

class DateTime UtcNow { __get; }

 

FromFileTime Windows

Converts a windows filetime to datetime.

 

class method FromFileTime(aFileTime: FILETIME): DateTime

 

static DateTime FromFileTime(FILETIME aFileTime)

 

static func FromFileTime(_ aFileTime: FILETIME) -> DateTime

 

static DateTime FromFileTime(FILETIME aFileTime)

Parameters:

  • aFileTime:

FromOleDate Android, iOS, iOS Simulator, macOS, tvOS, tvOS Simulator, Ubuntu, UIKit for Mac, watchOS Simulator, watchOS-arm64_32, watchOS-armv7k, WebAssembly, Windows

Converts an OLE date (double) to DateTime.

 

class method FromOleDate(aDate: Double): DateTime

 

static DateTime FromOleDate(Double aDate)

 

static func FromOleDate(_ aDate: Double) -> DateTime

 

static DateTime FromOleDate(Double aDate)

Parameters:

  • aDate:

FromSystemTime Windows

Converts a windows system time to Datetime.

 

class method FromSystemTime(aFileTime: SYSTEMTIME): DateTime

 

static DateTime FromSystemTime(SYSTEMTIME aFileTime)

 

static func FromSystemTime(_ aFileTime: SYSTEMTIME) -> DateTime

 

static DateTime FromSystemTime(SYSTEMTIME aFileTime)

Parameters:

  • aFileTime:

FromUnixTime Android, iOS, iOS Simulator, macOS, tvOS, tvOS Simulator, Ubuntu, UIKit for Mac, watchOS, watchOS Simulator

Converts a unix timestamp to Datetime.

 

class method FromUnixTime(aStruct: __struct_timespec): DateTime

 

static DateTime FromUnixTime(__struct_timespec aStruct)

 

static func FromUnixTime(_ aStruct: __struct_timespec) -> DateTime

 

static DateTime FromUnixTime(__struct_timespec aStruct)

Parameters:

  • aStruct:

FromUnixTimeUTC Android, iOS, iOS Simulator, macOS, tvOS, tvOS Simulator, Ubuntu, UIKit for Mac, watchOS, watchOS Simulator

Converts a unix timestamp to Datetime, presume in UTC.

 

class method FromUnixTimeUTC(aStruct: __struct_timespec): DateTime

 

static DateTime FromUnixTimeUTC(__struct_timespec aStruct)

 

static func FromUnixTimeUTC(_ aStruct: __struct_timespec) -> DateTime

 

static DateTime FromUnixTimeUTC(__struct_timespec aStruct)

Parameters:

  • aStruct:

isLeapYear

Check if the year is a leap year.

 

class method isLeapYear(Value: Int32): Boolean

 

static Boolean isLeapYear(Int32 Value)

 

static func isLeapYear(_ Value: Int32) -> Boolean

 

static Boolean isLeapYear(Int32 Value)

Parameters:

  • Value:

ReferenceEquals    (declared in Object)

Compares two references for equivalence (even if they have an equals operator)

 

class method ReferenceEquals(a: Object; b: Object): Boolean

 

static Boolean ReferenceEquals(Object a, Object b)

 

static func ReferenceEquals(_ a: Object, _ b: Object) -> Boolean

 

static Boolean ReferenceEquals(Object a, Object b)

Parameters:

  • a: left value
  • b: right value

ToOleDate Android, iOS, iOS Simulator, macOS, tvOS, tvOS Simulator, Ubuntu, UIKit for Mac, watchOS Simulator, watchOS-arm64_32, watchOS-armv7k, WebAssembly, Windows

Convert a datetime to Ole date (double).

 

class method ToOleDate(aDate: DateTime): Double

 

static Double ToOleDate(DateTime aDate)

 

static func ToOleDate(_ aDate: DateTime) -> Double

 

static Double ToOleDate(DateTime aDate)

Parameters:

  • aDate:

ToSystemTime (DateTime): SYSTEMTIME Windows

Convert this value to a System datetime.

 

class method ToSystemTime(aDateTime: DateTime): SYSTEMTIME

 

static SYSTEMTIME ToSystemTime(DateTime aDateTime)

 

static func ToSystemTime(_ aDateTime: DateTime) -> SYSTEMTIME

 

static SYSTEMTIME ToSystemTime(DateTime aDateTime)

Parameters:

  • aDateTime:

 

constructor

Creates a default datetime object with the "MinValue" as value.

 

constructor

 

DateTime()

 

init()

 

DateTime()

constructor (Int32, Int32, Int32)

Creates a new object with a given date.

 

constructor(aYear: Int32; aMonth: Int32; aDay: Int32)

 

DateTime(Int32 aYear, Int32 aMonth, Int32 aDay)

 

init(_ aYear: Int32, _ aMonth: Int32, _ aDay: Int32)

 

DateTime(Int32 aYear, Int32 aMonth, Int32 aDay)

Parameters:

  • aYear:
  • aMonth:
  • aDay:

constructor (Int32, Int32, Int32, Int32, Int32)

Creates a new object with a given date and time.

 

constructor(aYear: Int32; aMonth: Int32; aDay: Int32; anHour: Int32; aMinute: Int32)

 

DateTime(Int32 aYear, Int32 aMonth, Int32 aDay, Int32 anHour, Int32 aMinute)

 

init(_ aYear: Int32, _ aMonth: Int32, _ aDay: Int32, _ anHour: Int32, _ aMinute: Int32)

 

DateTime(Int32 aYear, Int32 aMonth, Int32 aDay, Int32 anHour, Int32 aMinute)

Parameters:

  • aYear:
  • aMonth:
  • aDay:
  • anHour:
  • aMinute:

constructor (Int32, Int32, Int32, Int32, Int32, Int32)

Creates a new object with a given date and time.

 

constructor(aYear: Int32; aMonth: Int32; aDay: Int32; anHour: Int32; aMinute: Int32; aSecond: Int32)

 

DateTime(Int32 aYear, Int32 aMonth, Int32 aDay, Int32 anHour, Int32 aMinute, Int32 aSecond)

 

init(_ aYear: Int32, _ aMonth: Int32, _ aDay: Int32, _ anHour: Int32, _ aMinute: Int32, _ aSecond: Int32)

 

DateTime(Int32 aYear, Int32 aMonth, Int32 aDay, Int32 anHour, Int32 aMinute, Int32 aSecond)

Parameters:

  • aYear:
  • aMonth:
  • aDay:
  • anHour:
  • aMinute:
  • aSecond:

constructor (Int32, Int32, Int32, Int32, Int32, Int32, Int32)

Creates a new object with a given date and time.

 

constructor(aYear: Int32; aMonth: Int32; aDay: Int32; anHour: Int32; aMinute: Int32; aSecond: Int32; aMillisecond: Int32)

 

DateTime(Int32 aYear, Int32 aMonth, Int32 aDay, Int32 anHour, Int32 aMinute, Int32 aSecond, Int32 aMillisecond)

 

init(_ aYear: Int32, _ aMonth: Int32, _ aDay: Int32, _ anHour: Int32, _ aMinute: Int32, _ aSecond: Int32, _ aMillisecond: Int32)

 

DateTime(Int32 aYear, Int32 aMonth, Int32 aDay, Int32 anHour, Int32 aMinute, Int32 aSecond, Int32 aMillisecond)

Parameters:

  • aYear:
  • aMonth:
  • aDay:
  • anHour:
  • aMinute:
  • aSecond:
  • aMillisecond:

constructor (Int64)

Creates a new object given the nr of ticks.

 

constructor(aTicks: Int64)

 

DateTime(Int64 aTicks)

 

init(_ aTicks: Int64)

 

DateTime(Int64 aTicks)

Parameters:

  • aTicks:

AddDays

Adds a nr of days and returns a new datetime.

 

method AddDays(Value: Int32): DateTime

 

DateTime AddDays(Int32 Value)

 

func AddDays(_ Value: Int32) -> DateTime

 

DateTime AddDays(Int32 Value)

Parameters:

  • Value:

AddHours

Adds a nr of hours and returns a new datetime.

 

method AddHours(Value: Int32): DateTime

 

DateTime AddHours(Int32 Value)

 

func AddHours(_ Value: Int32) -> DateTime

 

DateTime AddHours(Int32 Value)

Parameters:

  • Value:

AddMilliseconds

Adds a nr of msec and returns a new datetime.

 

method AddMilliseconds(Value: Int32): DateTime

 

DateTime AddMilliseconds(Int32 Value)

 

func AddMilliseconds(_ Value: Int32) -> DateTime

 

DateTime AddMilliseconds(Int32 Value)

Parameters:

  • Value:

AddMinutes

Adds a nr of minutes and returns a new datetime.

 

method AddMinutes(Value: Int32): DateTime

 

DateTime AddMinutes(Int32 Value)

 

func AddMinutes(_ Value: Int32) -> DateTime

 

DateTime AddMinutes(Int32 Value)

Parameters:

  • Value:

AddMonths

Adds a nr of months and returns a new datetime.

 

method AddMonths(Value: Int32): DateTime

 

DateTime AddMonths(Int32 Value)

 

func AddMonths(_ Value: Int32) -> DateTime

 

DateTime AddMonths(Int32 Value)

Parameters:

  • Value:

AddSeconds

Adds a nr of seconds and returns a new datetime.

 

method AddSeconds(Value: Int32): DateTime

 

DateTime AddSeconds(Int32 Value)

 

func AddSeconds(_ Value: Int32) -> DateTime

 

DateTime AddSeconds(Int32 Value)

Parameters:

  • Value:

AddTicks

Adds a nr of ticks and returns a new datetime.

 

method AddTicks(Value: Int64): DateTime

 

DateTime AddTicks(Int64 Value)

 

func AddTicks(_ Value: Int64) -> DateTime

 

DateTime AddTicks(Int64 Value)

Parameters:

  • Value:

AddYears

Adds a nr of years and returns a new datetime.

 

method AddYears(Value: Int32): DateTime

 

DateTime AddYears(Int32 Value)

 

func AddYears(_ Value: Int32) -> DateTime

 

DateTime AddYears(Int32 Value)

Parameters:

  • Value:

CompareTo

Compares this date, and returns 0 if the same, -1 if less, 1 if more.

 

method CompareTo(Value: DateTime): Int32

 

Int32 CompareTo(DateTime Value)

 

func CompareTo(_ Value: DateTime) -> Int32

 

Int32 CompareTo(DateTime Value)

Parameters:

  • Value:

Equals  override virtual

Returns true if the target object matches this one, by default compares the reference.

 

method Equals(obj: Object): Boolean

 

Boolean Equals(Object obj)

 

func Equals(_ obj: Object) -> Boolean

 

Boolean Equals(Object obj)

Parameters:

  • obj: the reference to compare this with.

Finalize  protected virtual    (declared in Object)

Finalizer implementation. If not overriden it's not called at all, the runtime checks if there is an override before calling a finalizer.

 

method Finalize

 

void Finalize()

 

func Finalize()

 

void Finalize()

GetHashCode  virtual    (declared in Object)

Returns a hashcode for this object. Overriden implementations should make sure that the number returned here is constant given the same object.

 

method GetHashCode: Int32

 

Int32 GetHashCode()

 

func GetHashCode() -> Int32

 

Int32 GetHashCode()

GetType    (declared in Object)

Returns the actual type of this class

 

method GetType: Type

 

Type GetType()

 

func GetType() -> Type

 

Type GetType()

ToString  override virtual

Convert this datetime to string.

 

method ToString: String

 

String ToString()

 

func ToString() -> String

 

String ToString()

ToSystemTime Windows

Convert this value to a System datetime.

 

method ToSystemTime: SYSTEMTIME

 

SYSTEMTIME ToSystemTime()

 

func ToSystemTime() -> SYSTEMTIME

 

SYSTEMTIME ToSystemTime()