Skip to content

Instantly share code, notes, and snippets.

@RenSys
Last active February 17, 2017 08:33
Show Gist options
  • Save RenSys/1f638d223850988c7721c23595fbf121 to your computer and use it in GitHub Desktop.
Save RenSys/1f638d223850988c7721c23595fbf121 to your computer and use it in GitHub Desktop.
Simple Date Calc using Pendulum
import pendulum
# pip install pendulum
if __name__ == '__main__':
_1st_jan_2011 = pendulum.create(day=1, month=1, year=2011)
print _1st_jan_2011.days_in_month
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment