enum class sys::Month

sys::Obj
  sys::Enum
    sys::Month

@Serializable { simple=true }

Source

Enum for twelve months of the year.

apr

const static Month apr := ...

Source

April

aug

const static Month aug := ...

Source

August

dec

const static Month dec := ...

Source

December

decrement

@Operator
Month decrement()

Source

Return the month before this month.

feb

const static Month feb := ...

Source

February

fromStr

static new fromStr(Str name, Bool checked := true)

Source

Return the Month instance for the specified name. If not a valid name and checked is false return null, otherwise throw ParseErr.

increment

@Operator
Month increment()

Source

Return the month after this month.

jan

const static Month jan := ...

Source

January

jul

const static Month jul := ...

Source

July

jun

const static Month jun := ...

Source

June

localeAbbr

Str localeAbbr()

Source

Get the abbreviated name for the current locale. Configured by the sys::<name>Abbr localized property.

localeFull

Str localeFull()

Source

Get the full name for the current locale. Configured by the sys::<name>Full localized property.

mar

const static Month mar := ...

Source

March

may

const static Month may := ...

Source

May

nov

const static Month nov := ...

Source

November

numDays

Int numDays(Int year)

Source

Return the number of days in this month for the specified year.

oct

const static Month oct := ...

Source

October

sep

const static Month sep := ...

Source

September

toLocale

Str toLocale(Str? pattern := null, Locale locale := Locale.cur())

Source

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.

vals

const static Month[] vals := ...

Source

List of Month values indexed by ordinal