Return the number of days (0..6
) since the last Sunday.
This function does not generate a change.
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