W3cubDocs

/Haxe C#

Calendar

package cs.system.globalization

implements ICloneable

Available on cs

Static variables

staticread onlyCurrentEra:Int

Static methods

staticReadOnly(calendar:Calendar):Calendar

Variables

read onlyAlgorithmType:CalendarAlgorithmType

read onlyEras:NativeArray<Int>

read onlyIsReadOnly:Bool

read onlyMaxSupportedDateTime:DateTime

read onlyMinSupportedDateTime: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

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