sbt-idp/cope2n-api/fwd_api/utils/time_stuff.py

9 lines
365 B
Python
Raw Normal View History

2024-02-05 05:56:51 +00:00
def is_the_same_day(first_day, second_day):
if first_day.day == second_day.day and first_day.month == second_day.month and first_day.year == second_day.year:
return True
return False
def is_the_same_month(first_day, second_day):
if first_day.month == second_day.month and first_day.year == second_day.year:
return True
return False