The script returning the day of the week is broken ?
Posted: Sun Feb 02, 2020 3:34 am
The script indicating the day of the week returns incorrect results for leap years.
The script lacks verification of leap years.
Something like that:
The script lacks verification of leap years.
Something like that:
Code: Select all
:local fully [:pick $date 7 11]
#is the year leap?
:if (($fully%4=0 and $fully%100!=0) or ($fully%400=0)) do={:set sum ($sum - 1)}