Fantom

 

const final enum

sys::Month

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

@Serializable { simple=true collection=false }

Enum for twelve months of the year.

Slots

aprSource

const static Month apr

April

augSource

const static Month aug

August

decSource

const static Month dec

December

decrementSource

Month decrement()

Return the month before this month.

febSource

const static Month feb

February

fromStrSource

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.

incrementSource

Month increment()

Return the month after this month.

janSource

const static Month jan

January

julSource

const static Month jul

July

junSource

const static Month jun

June

localeAbbrSource

Str localeAbbr()

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

localeFullSource

Str localeFull()

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

marSource

const static Month mar

March

maySource

const static Month may

May

novSource

const static Month nov

November

numDaysSource

Int numDays(Int year)

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

octSource

const static Month oct

October

sepSource

const static Month sep

September

toLocaleSource

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.

valsSource

const static Month[] vals := ...

List of Month values indexed by ordinal