diff --git a/web_programming/get_top_billionaires.py b/web_programming/get_top_billionaires.py index 281dceec4..ec9d41f82 100644 --- a/web_programming/get_top_billionaires.py +++ b/web_programming/get_top_billionaires.py @@ -26,11 +26,11 @@ def years_old(unix_timestamp: float) -> str: Age as string >>> from datetime import datetime, UTC - >>> 2024 - int(calculate_age(946684800)) + >>> 2024 - int(years_old(946684800)) 2000 - >>> 2024 - int(calculate_age(-2145703316)) + >>> 2024 - int(years_old(-2145703316)) 1902 - >>> 2024 - int(calculate_age(2209202284)) + >>> 2024 - int(years_old(2209202284)) 2040 """ birth_date = datetime.fromtimestamp(unix_timestamp, tz=UTC)