Skip to content

Instantly share code, notes, and snippets.

@chipbell4
Created November 10, 2014 02:51
Show Gist options
  • Select an option

  • Save chipbell4/e0afdbc072f079ab7ccb to your computer and use it in GitHub Desktop.

Select an option

Save chipbell4/e0afdbc072f079ab7ccb to your computer and use it in GitHub Desktop.
One Liner trick for Zeller's Congruence Cheat
import datetime
# This is TOTALLY in the builtin Python docs.
# help(datetime.datetime)
datetime.datetime.strptime('OctoBER 31, 2013', '%B %d, %Y').strftime('%A %B %d, %Y')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment