// // Copyright (c) 2006, Brian Frank and Andy Frank // Licensed under the Academic Free License version 3.0 // // History: // 19 Sep 06 Brian Frank Creation // ** ** Enum for seven days of the week. ** enum Weekday { ** Sunday sun, ** Monday mon, ** Tuesday tue, ** Wednesday wed, ** Thursday thu, ** Friday fri, ** Saturday sat ** ** Return the day after this weekday. ** Weekday increment() ** ** Return the day before this weekday. ** Weekday decrement() ** ** 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`. ** Str toLocale(Str? pattern := null) ** ** Get the abbreviated name for the current locale. ** Configured by the 'sys::<name>Abbr' localized property. ** Str localeAbbr() ** ** Get the full name for the current locale. ** Configured by the 'sys::<name>Full' localized property. ** Str localeFull() ** ** 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. ** static Weekday localeStartOfWeek() }