mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-02-12 12:28:07 +00:00
Update get_top_billionaires.py
This commit is contained in:
parent
553eb820b5
commit
c7866491ec
|
@ -31,7 +31,7 @@ def calculate_age(unix_date: float) -> str:
|
||||||
>>> int(calculate_age(-657244800000)) - years_since_create
|
>>> int(calculate_age(-657244800000)) - years_since_create
|
||||||
72
|
72
|
||||||
>>> int(calculate_age(46915200000)) - years_since_create
|
>>> int(calculate_age(46915200000)) - years_since_create
|
||||||
51
|
50
|
||||||
"""
|
"""
|
||||||
# Convert date from milliseconds to seconds
|
# Convert date from milliseconds to seconds
|
||||||
unix_date /= 1000
|
unix_date /= 1000
|
||||||
|
|
Loading…
Reference in New Issue
Block a user