BirthdayM / backend /countdown.py
ayush2917's picture
Create countdown.py
ec752d3 verified
raw
history blame
207 Bytes
from datetime import datetime
def get_countdown():
birthday = datetime(2025, 4, 19)
today = datetime.now()
days_left = (birthday - today).days
return max(0, days_left) # Ensure non-negative