c0de 0.3.0Diese Seite auf Deutsch

WEEKDAY ​

Returns the day of the week, from 1 (Monday) to 7 (Sunday).

Without time the function uses the current time. It uses the time zone of the server.

Parameters and results

  • time TIME: the time (optional, default now)
  • result result INTEGER: the day of the week, 1 to 7

Example

c0de
CALL c0de/time/WEEKDAY
    PARAMETER time t ;
    RESULT result weekday