weekDay()
Returns the weekday of a time.
Synopsis
int weekDay(time t);
Parameters
Parameter | Description |
---|---|
t | Time |
Return value
Returns the day of the week (1 ... 7 for Mon ... Sun) of a time t.
Errors
In case of an error the function returns -1.
Description
The function returns the day of the week of a stated time element as integer value (1 ... 7 for Mon ... Sun).
Example
main()
{
time t;
t=getCurrentTime();
DebugN(weekDay(t)); // Current weekday
}
Assignment
Time function
Availability
CTRL