enum class sys::Weekday

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

@Serializable { simple=true }

Source

Enum for seven days of the week.

decrement

@Operator
Weekday decrement()

Source

Return the day before this weekday.

fri

const static Weekday fri := ...

Source

Friday

fromStr

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

Source

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

increment

@Operator
Weekday increment()

Source

Return the day after this weekday.

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.

localeStartOfWeek

static Weekday localeStartOfWeek()

Source

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. Also see localeVals.

localeVals

static Weekday[] localeVals()

Source

Get the days of the week ordered according to the locale's start of the week. Also see localeStartOfWeek.

mon

const static Weekday mon := ...

Source

Monday

sat

const static Weekday sat := ...

Source

Saturday

sun

const static Weekday sun := ...

Source

Sunday

thu

const static Weekday thu := ...

Source

Thursday

toLocale

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

Source

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.

tue

const static Weekday tue := ...

Source

Tuesday

vals

const static Weekday[] vals := ...

Source

List of Weekday values indexed by ordinal

wed

const static Weekday wed := ...

Source

Wednesday