Created
June 7, 2020 20:39
-
-
Save parzibyte/23067a4eddaf2ce854cd6345b72d088f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def dia_de_la_semana(dd, mm, aaaa): | |
a = int((14 - mm) / 12) | |
y = aaaa - a | |
m = int(mm + (12 * a) - 2) | |
d = int(dd + y + int(y/4) - int(y/100) + int(y/400)+((31*m) / 12)) % 7 | |
return d |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment