Skip to content

Fixes wiki and doctest issues #11227

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 12 commits into
base: master
Choose a base branch
from
Prev Previous commit
Next Next commit
Update get_top_billionaires.py
  • Loading branch information
MarlieChiller authored Jan 15, 2024
commit d8b299d671c8eca9ff7fc0e2679aab0dc7a17e6b
6 changes: 3 additions & 3 deletions web_programming/get_top_billionaires.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down