Skip to content

Instantly share code, notes, and snippets.

import datetime
compare_date = datetime.datetime(2014, 2, 7, 19, 44, 1)
def timeAgo(time):
current_time = datetime.datetime.now().time()
today = datetime.date.today()
current_month = today.month
current_year = today.year