Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created June 7, 2020 20:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save parzibyte/23067a4eddaf2ce854cd6345b72d088f to your computer and use it in GitHub Desktop.
Save parzibyte/23067a4eddaf2ce854cd6345b72d088f to your computer and use it in GitHub Desktop.
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