Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to create datetime from negative epoch in python

import datetimne as dt #add a namespace if using other datetime import statements like timedelta, etc.
dt.datetime(1970, 1, 1) + dt.timedelta(milliseconds=-3739996800000)
 
PREVIOUS NEXT
Tagged: #create #datetime #negative #epoch #python
ADD COMMENT
Topic
Name
4+4 =