Skip to content

Instantly share code, notes, and snippets.

@Jivemofo
Last active May 15, 2019 00:20
Show Gist options
  • Save Jivemofo/2fe2353f8423ec0cad563101cb7b1c89 to your computer and use it in GitHub Desktop.
Save Jivemofo/2fe2353f8423ec0cad563101cb7b1c89 to your computer and use it in GitHub Desktop.
datetime_solution_pybite_67
from datetime import date, timedelta
start_100days = date(2017, 3, 30)
pybites_founded = date(2016, 12, 19)
pycon_date = date(2018, 5, 8)
def get_hundred_days_end_date():
"""Return a string of yyyy-mm-dd"""
t = timedelta(days = 100)
return (start_100days + t)
def get_days_between_pb_start_first_joint_pycon():
"""Return the int number of days"""
return (pycon_date - pybites_founded).days
print(get_hundred_days_end_date())
print(get_days_between_pb_start_first_joint_pycon())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment