mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-03-13 18:19:47 +00:00
Update get_top_billionaires.py to fix doctest failure
This commit is contained in:
parent
76dec73df2
commit
cc28eed98a
@ -29,7 +29,7 @@ def calculate_age(unix_date: float) -> str:
|
||||
>>> from datetime import datetime, UTC
|
||||
>>> years_since_create = datetime.now(tz=UTC).year - 2022
|
||||
>>> int(calculate_age(-657244800000)) - years_since_create
|
||||
73
|
||||
72
|
||||
>>> int(calculate_age(46915200000)) - years_since_create
|
||||
51
|
||||
"""
|
||||
|
Loading…
x
Reference in New Issue
Block a user