
Slots
- decrement
-
Weekday decrement()
Return the day before this weekday.
- fri
-
static Weekday fri
- 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.
- increment
-
Weekday increment()
Return the day after this weekday.
- localeAbbr
-
Str localeAbbr()
Get the abbreviated name for the current locale. Configured by the
sys::<name>Abbr
localized property. - localeFull
-
Str localeFull()
Get the full name for the current locale. Configured by the
sys::<name>Full
localized property. - 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 bysys::weekdayStart
localized property. - mon
-
static Weekday mon
- sat
-
static Weekday sat
- sun
-
static Weekday sun
- thu
-
static Weekday thu
- 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.
- tue
-
static Weekday tue
- values
-
static Weekday[] values
List of Weekday values indexed by ordinal
- wed
-
static Weekday wed