Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

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
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python #unix #minuts
ADD COMMENT
Topic
Name
3+9 =