Back to Index

Definition: dow() — Allowed: no arguments; Not allowed: any arguments.

Returns the local day-of-week as Mon=0 through Sun=6. Returns -1 if local time is not available.

Example

if (dow() == 5) {
  logn("Saturday");
}