ayush2917 commited on
Commit
ec752d3
·
verified ·
1 Parent(s): e5b7613

Create countdown.py

Browse files
Files changed (1) hide show
  1. backend/countdown.py +7 -0
backend/countdown.py ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ from datetime import datetime
2
+
3
+ def get_countdown():
4
+ birthday = datetime(2025, 4, 19)
5
+ today = datetime.now()
6
+ days_left = (birthday - today).days
7
+ return max(0, days_left) # Ensure non-negative