Fuego.Lang : Day

The Day component is an Enumeration that defines the seven days of the week. This component is used with the Time component to specify a day of the week.

This component also calculates the day of the week for any given date, and provides localized names for each day of the week.

Example

today = Day.valueOf(time : 'now')

display "Today is "+localizedName(today)

if today == FRIDAY then
    display "Have a good weekend!"

elseif today in [SATURDAY, SUNDAY] then
    display "I'm enjoying the weekend"
else
    daysTillWeekend = ordinal(Day.SATURDAY) - ordinal(today)
    display daysTillWeekend + " more days until weekend"
end
      
Related reference
Fuego.Lang : Month
Fuego.Lang : Week
Fuego.Lang : Time