Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

remove timezone from a datetime object?

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