Answers for "python unix get 5 minuts from now"

0

python unix get 5 minuts from now

import datetime
current_time = datetime.datetime.now(datetime.timezone.utc)
unix_timestamp = current_time.timestamp() # works if Python >= 3.3

unix_timestamp_plus_5_min = unix_timestamp + (5 * 60)  # 5 min * 60 seconds
Posted by: Guest on September-29-2020

Code answers related to "TypeScript"

Browse Popular Code Answers by Language