From d8b299d671c8eca9ff7fc0e2679aab0dc7a17e6b Mon Sep 17 00:00:00 2001 From: Charlie Miller <35689954+MarlieChiller@users.noreply.github.com> Date: Mon, 15 Jan 2024 09:24:18 +0000 Subject: [PATCH] Update get_top_billionaires.py --- web_programming/get_top_billionaires.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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)