logo

const final enum

sys::Weekday

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

Enum for seven days of the week.

Slots

decrement

Weekday decrement()

Return the day before this weekday.

Source

fri

static Weekday fri

Source

fromStr

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.

Source

increment

Weekday increment()

Return the day after this weekday.

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

localeStartOfWeek

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.

Source

mon

static Weekday mon

Source

sat

static Weekday sat

Source

sun

static Weekday sun

Source

thu

static Weekday thu

Source

toLocale

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.

Source

tue

static Weekday tue

Source

values

static Weekday[] values

List of Weekday values indexed by ordinal

Source

wed

static Weekday wed

Source