Fantom

 

const final enum

sys::Weekday

sys::Obj
  sys::Enum
    sys::Weekday

@Serializable { simple=true collection=false }

Enum for seven days of the week.

Slots

decrementSource

Weekday decrement()

Return the day before this weekday.

friSource

const static Weekday fri

Friday

fromStrSource

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

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

incrementSource

Weekday increment()

Return the day after this weekday.

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.

localeStartOfWeekSource

static Weekday localeStartOfWeek()

Get the first day of the week for the current locale. For example in the United States, sun is considered the start of the week. Configured by sys::weekdayStart localized property.

monSource

const static Weekday mon

Monday

satSource

const static Weekday sat

Saturday

sunSource

const static Weekday sun

Sunday

thuSource

const static Weekday thu

Thursday

toLocaleSource

Str toLocale(Str? pattern := null)

Return the weekday as a localized string according to the specified pattern. The pattern rules are a subset of the DateTime.toLocale:

WWW    Three letter abbr weekday  Tue
WWWW   Full weekday name          Tuesday

If pattern is null it defaults to "WWW". Also see localeAbbr and localeFull.

tueSource

const static Weekday tue

Tuesday

valsSource

const static Weekday[] vals := ...

List of Weekday values indexed by ordinal

wedSource

const static Weekday wed

Wednesday