Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python datetime remove timezone

# dt_tz is a datetime.datetime object
dt = dt_tz.replace(tzinfo=None)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python #datetime #remove #timezone
ADD COMMENT
Topic
Name
9+3 =