W3cubDocs

/Haxe C#

DateTime

package cs.system

extends ValueType

implements IComparable_1<DateTime>, IEquatable_1<DateTime>, IComparable, IConvertible, IFormattable, ISerializable

Available on cs

Static variables

staticread onlyMaxValue:DateTime

staticread onlyMinValue:DateTime

staticread onlyNow:DateTime

staticread onlyToday:DateTime

staticread onlyUtcNow:DateTime

Static methods

staticCompare(t1:DateTime, t2:DateTime):Int

staticDaysInMonth(year:Int, month:Int):Int

staticFromBinary(dateData:Int64):DateTime

staticFromFileTime(fileTime:Int64):DateTime

staticFromFileTimeUtc(fileTime:Int64):DateTime

staticFromOADate(d:Float):DateTime

staticIsLeapYear(year:Int):Bool

staticParse(s:String):DateTime

staticParse(s:String, provider:IFormatProvider, styles:DateTimeStyles):DateTime

staticParse(s:String, provider:IFormatProvider):DateTime

staticParseExact(s:String, format:String, provider:IFormatProvider):DateTime

staticParseExact(s:String, formats:NativeArray<String>, provider:IFormatProvider, style:DateTimeStyles):DateTime

staticParseExact(s:String, format:String, provider:IFormatProvider, style:DateTimeStyles):DateTime

staticSpecifyKind(value:DateTime, kind:DateTimeKind):DateTime

staticTryParse(s:String, result:Out<DateTime>):Bool

staticTryParse(s:String, provider:IFormatProvider, styles:DateTimeStyles, result:Out<DateTime>):Bool

staticTryParseExact(s:String, format:String, provider:IFormatProvider, style:DateTimeStyles, result:Out<DateTime>):Bool

staticTryParseExact(s:String, formats:NativeArray<String>, provider:IFormatProvider, style:DateTimeStyles, result:Out<DateTime>):Bool

static_Equals(t1:DateTime, t2:DateTime):Bool

staticop_Addition(d:DateTime, t:TimeSpan):DateTime

staticop_Equality(d1:DateTime, d2:DateTime):Bool

staticop_GreaterThan(t1:DateTime, t2:DateTime):Bool

staticop_GreaterThanOrEqual(t1:DateTime, t2:DateTime):Bool

staticop_Inequality(d1:DateTime, d2:DateTime):Bool

staticop_LessThan(t1:DateTime, t2:DateTime):Bool

staticop_LessThanOrEqual(t1:DateTime, t2:DateTime):Bool

staticop_Subtraction(d1:DateTime, d2:DateTime):TimeSpan

staticop_Subtraction(d:DateTime, t:TimeSpan):DateTime

Constructor

finalnew(ticks:Int64)

finalnew(year:Int, month:Int, day:Int, hour:Int, minute:Int, second:Int, millisecond:Int, calendar:Calendar, kind:DateTimeKind)

finalnew(year:Int, month:Int, day:Int, hour:Int, minute:Int, second:Int, millisecond:Int, kind:DateTimeKind)

finalnew(year:Int, month:Int, day:Int, hour:Int, minute:Int, second:Int, kind:DateTimeKind)

finalnew(ticks:Int64, kind:DateTimeKind)

finalnew(year:Int, month:Int, day:Int, hour:Int, minute:Int, second:Int, millisecond:Int, calendar:Calendar)

finalnew(year:Int, month:Int, day:Int, hour:Int, minute:Int, second:Int, calendar:Calendar)

finalnew(year:Int, month:Int, day:Int, calendar:Calendar)

finalnew(year:Int, month:Int, day:Int, hour:Int, minute:Int, second:Int, millisecond:Int)

finalnew(year:Int, month:Int, day:Int, hour:Int, minute:Int, second:Int)

finalnew(year:Int, month:Int, day:Int)

Variables

read onlyDate:DateTime

read onlyDay:Int

read onlyDayOfWeek:DayOfWeek

read onlyDayOfYear:Int

read onlyHour:Int

read onlyKind:DateTimeKind

read onlyMillisecond:Int

read onlyMinute:Int

read onlyMonth:Int

read onlySecond:Int

read onlyTicks:Int64

read onlyTimeOfDay:TimeSpan

read onlyYear:Int

Methods

finalAdd(value:TimeSpan):DateTime

finalAddDays(value:Float):DateTime

finalAddHours(value:Float):DateTime

finalAddMilliseconds(value:Float):DateTime

finalAddMinutes(value:Float):DateTime

finalAddMonths(months:Int):DateTime

finalAddSeconds(value:Float):DateTime

finalAddTicks(value:Int64):DateTime

finalAddYears(value:Int):DateTime

finalCompareTo(value:Dynamic):Int

finalCompareTo(value:DateTime):Int

finalGetDateTimeFormats():NativeArray<String>

finalGetDateTimeFormats(format:Char16, provider:IFormatProvider):NativeArray<String>

finalGetDateTimeFormats(provider:IFormatProvider):NativeArray<String>

finalGetDateTimeFormats(format:Char16):NativeArray<String>

finalGetTypeCode():TypeCode

finalIsDaylightSavingTime():Bool

finalSubtract(value:DateTime):TimeSpan

finalSubtract(value:TimeSpan):DateTime

finalToBinary():Int64

finalToFileTime():Int64

finalToFileTimeUtc():Int64

finalToLocalTime():DateTime

finalToLongDateString():String

finalToLongTimeString():String

finalToOADate():Float

finalToShortDateString():String

finalToShortTimeString():String

finalToUniversalTime():DateTime

© 2005–2020 Haxe Foundation
Licensed under a MIT license.
https://api.haxe.org/cs/system/DateTime.html