Slots
- decrementSource
-
Weekday decrement()
Return the day before this weekday.
- friSource
-
static Weekday fri := Weekday.make(5, "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 bysys::weekdayStart
localized property. - monSource
-
static Weekday mon := Weekday.make(1, "mon")
Monday
- satSource
-
static Weekday sat := Weekday.make(6, "sat")
Saturday
- sunSource
-
static Weekday sun := Weekday.make(0, "sun")
Sunday
- thuSource
-
static Weekday thu := Weekday.make(4, "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
-
static Weekday tue := Weekday.make(2, "tue")
Tuesday
- valuesSource
-
static Weekday[] values := ...
List of Weekday values indexed by ordinal
- wedSource
-
static Weekday wed := Weekday.make(3, "wed")
Wednesday