Month
@Serializable { simple=true }
const class Month : Enum
Enum for twelve months of the year.
Return the Month instance for the specified name
July
October
April
February
June
December
May
List of Month values indexed by ordinal
August
November
January
March
September
Return the month as a localized string according to the specified pattern
Return the month before this month
Return the month after this month
Get the abbreviated name for the current locale
Return the number of days in this month for the specified year
Get the full name for the current locale
const static Month : apr
April
const static Month : aug
August
const static Month : dec
December
@Operator
Month decrement()
Return the month before this month.
const static Month : feb
February
static new fromStr(Str name, Bool checked)
Return the Month instance for the specified name. If not a valid name and checked is false return null, otherwise throw ParseErr.
@Operator
Month increment()
Return the month after this month.
const static Month : jan
January
const static Month : jul
July
const static Month : jun
June
Str localeAbbr()
Get the abbreviated name for the current locale. Configured by the sys::<name>Abbr localized property.
Str localeFull()
Get the full name for the current locale. Configured by the sys::<name>Full localized property.
const static Month : mar
March
const static Month : may
May
const static Month : nov
November
Int numDays(Int year)
Return the number of days in this month for the specified year.
const static Month : oct
October
const static Month : sep
September
Str toLocale(Str? pattern, Locale locale)
Return the month as a localized string according to the specified pattern. The pattern rules are a subset of the DateTime.toLocale:
M One/two digit month 6, 11 MM Two digit month 06, 11 MMM Three letter abbr month Jun, Nov MMMM Full month name June, November
If pattern is null it defaults to "MMM". Also see localeAbbr and localeFull.
const static Month[] : vals
List of Month values indexed by ordinal