Algosim documentation: DayOfTheWeek

DayOfTheWeek

Returns the day of the week at a particular point in time.

Syntax

Description

DayOfTheWeek(t) returns the day of the week (1–7) at t. Day 1 is Monday and day 7 is Sunday.

Examples

t ≔ datetime(1985, 06, 07, 18, 20, 52, 137)
date.year: 1985
date.month: June
date.day: 7
time.hour: 18
time.minute: 20
time.second: 52
time.millisecond: 137
DayOfTheWeek(t)
Friday
integer(ans)
5