logo

const final enum

sys::Month

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

Enum for twelve months of the year.

Slots

apr

static Month apr

Source

aug

static Month aug

Source

dec

static Month dec

Source

decrement

Month decrement()

Return the month before this month.

Source

feb

static Month feb

Source

fromStr

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

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

Source

increment

Month increment()

Return the month after this month.

Source

jan

static Month jan

Source

jul

static Month jul

Source

jun

static Month jun

Source

localeAbbr

Str localeAbbr()

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

Source

localeFull

Str localeFull()

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

Source

mar

static Month mar

Source

may

static Month may

Source

nov

static Month nov

Source

numDays

Int numDays(Int year)

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

Source

oct

static Month oct

Source

sep

static Month sep

Source

toLocale

Str toLocale(Str pattern := null)

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.

Source

values

static Month[] values

List of Month values indexed by ordinal

Source