This is the ThingsDB documentation for version v0, click here for the latest version!
Return the number of days (0..6) since the last Sunday.
This function does not generate an event.
datetime.weekday()
None
Returns the day of the week as a number between 0 (Sunday) and 6.
This code uses
weekday()as an example:
datetime(2020, 12, 10).weekday();
Return value in JSON format
4