W3cubDocs

/Haxe C#

Calendar

package cs.system.globalization

implements ICloneable

@:abstract@:libType@:csNative@:native("System.Globalization.Calendar") Available on cs

Variables

read only AlgorithmType:CalendarAlgorithmType

read only Eras:NativeArray<Int>

read only IsReadOnly:Bool

read only MaxSupportedDateTime:DateTime

read only MinSupportedDateTime:DateTime

TwoDigitYearMax:Int

Methods

@:overload AddDays (time:DateTime, days:Int):DateTime

@:overload AddHours (time:DateTime, hours:Int):DateTime

@:overload AddMilliseconds (time:DateTime, milliseconds:Float):DateTime

@:overload AddMinutes (time:DateTime, minutes:Int):DateTime

@:overload AddMonths (time:DateTime, months:Int):DateTime

@:overload AddSeconds (time:DateTime, seconds:Int):DateTime

@:overload AddWeeks (time:DateTime, weeks:Int):DateTime

@:overload AddYears (time:DateTime, years:Int):DateTime

@:overload Clone ():Dynamic

@:overload GetDayOfMonth (time:DateTime):Int

@:overload GetDayOfWeek (time:DateTime):DayOfWeek

@:overload GetDayOfYear (time:DateTime):Int

@:overload GetDaysInMonth (year:Int, month:Int):Int

@:overload GetDaysInMonth (year:Int, month:Int, era:Int):Int

@:overload GetDaysInYear (year:Int):Int

@:overload GetDaysInYear (year:Int, era:Int):Int

@:overload GetEra (time:DateTime):Int

@:overload GetHour (time:DateTime):Int

@:overload GetLeapMonth (year:Int):Int

@:overload GetLeapMonth (year:Int, era:Int):Int

@:overload GetMilliseconds (time:DateTime):Float

@:overload GetMinute (time:DateTime):Int

@:overload GetMonth (time:DateTime):Int

@:overload GetMonthsInYear (year:Int):Int

@:overload GetMonthsInYear (year:Int, era:Int):Int

@:overload GetSecond (time:DateTime):Int

@:overload GetWeekOfYear (time:DateTime, rule:CalendarWeekRule, firstDayOfWeek:DayOfWeek):Int

@:overload GetYear (time:DateTime):Int

@:overload IsLeapDay (year:Int, month:Int, day:Int):Bool

@:overload IsLeapDay (year:Int, month:Int, day:Int, era:Int):Bool

@:overload IsLeapMonth (year:Int, month:Int):Bool

@:overload IsLeapMonth (year:Int, month:Int, era:Int):Bool

@:overload IsLeapYear (year:Int):Bool

@:overload IsLeapYear (year:Int, era:Int):Bool

@:overload ToDateTime (year:Int, month:Int, day:Int, hour:Int, minute:Int, second:Int, millisecond:Int):DateTime

@:overload ToDateTime (year:Int, month:Int, day:Int, hour:Int, minute:Int, second:Int, millisecond:Int, era:Int):DateTime

@:overload ToFourDigitYear (year:Int):Int

Static variables

@:readOnly static read only CurrentEra:Int

Static methods

@:final @:overload static ReadOnly (calendar:Calendar):Calendar

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