W3cubDocs

/Haxe C#

Calendar

package cs.system.globalization

implements ICloneable

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

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

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

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

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

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

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

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

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

Clone ():Dynamic

GetDayOfMonth (time:DateTime):Int

GetDayOfWeek (time:DateTime):DayOfWeek

GetDayOfYear (time:DateTime):Int

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

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

GetDaysInYear (year:Int):Int

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

GetEra (time:DateTime):Int

GetHour (time:DateTime):Int

GetLeapMonth (year:Int):Int

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

GetMilliseconds (time:DateTime):Float

GetMinute (time:DateTime):Int

GetMonth (time:DateTime):Int

GetMonthsInYear (year:Int):Int

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

GetSecond (time:DateTime):Int

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

GetYear (time:DateTime):Int

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

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

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

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

IsLeapYear (year:Int):Bool

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

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

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

ToFourDigitYear (year:Int):Int

Static variables

static read only CurrentEra:Int

Static methods

static ReadOnly (calendar:Calendar):Calendar

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