Weekday
@Serializable { simple=true }
const class Weekday : Enum
Enum for seven days of the week.
Return the Weekday instance for the specified name
Thursday
Tuesday
List of Weekday values indexed by ordinal
Saturday
Wednesday
Friday
Monday
Sunday
Get the first day of the week for the current locale
Return the weekday as a localized string according to the specified pattern
Return the day before this weekday
Get the days of the week ordered according to the locale's start of the week
Return the day after this weekday
Get the abbreviated name for the current locale
Get the full name for the current locale
@Operator
Weekday decrement()
Return the day before this weekday.
const static Weekday : fri
Friday
static new fromStr(Str name, Bool checked)
Return the Weekday instance for the specified name. If not a valid name and checked is false return null, otherwise throw ParseErr.
@Operator
Weekday increment()
Return the day after this weekday.
Str localeAbbr()
Get the abbreviated name for the current locale. Configured by the sys::<name>Abbr localized property.
Str localeFull()
Get the full name for the current locale. Configured by the sys::<name>Full localized property.
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. Also see localeVals.
static Weekday[] localeVals()
Get the days of the week ordered according to the locale's start of the week. Also see localeStartOfWeek.
const static Weekday : mon
Monday
const static Weekday : sat
Saturday
const static Weekday : sun
Sunday
const static Weekday : thu
Thursday
Str toLocale(Str? pattern, Locale locale)
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.
const static Weekday : tue
Tuesday
const static Weekday[] : vals
List of Weekday values indexed by ordinal
const static Weekday : wed
Wednesday