Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -42,9 +42,6 @@ def calculate_age(birth_date: str, reference_date: str = "today") -> str:
|
|
42 |
Args:
|
43 |
birth_date: The birth date in any common format (e.g., "1990-05-15", "05/15/1990", "15.05.1990")
|
44 |
reference_date: The date to calculate age at (defaults to today). Use "today" or specific date in same formats.
|
45 |
-
|
46 |
-
Returns:
|
47 |
-
String describing age in years, months, and days (e.g., "34 years, 2 months, 15 days")
|
48 |
"""
|
49 |
|
50 |
from datetime import datetime
|
|
|
42 |
Args:
|
43 |
birth_date: The birth date in any common format (e.g., "1990-05-15", "05/15/1990", "15.05.1990")
|
44 |
reference_date: The date to calculate age at (defaults to today). Use "today" or specific date in same formats.
|
|
|
|
|
|
|
45 |
"""
|
46 |
|
47 |
from datetime import datetime
|