I have a cvs file that includes date-time in UTC timezone in this format: 2014-04-19 03:39:02.000. I used parser.parse to read date-time. I have the country name and subdivision. I want to convert this date-time data to local time-zone according to country and subdivision.
csv file content in (UTC): us la 2014-04-19 03:39:02.000
local date-time in this case (UTC-6) : 2014-04-18 21:39:02.000
So I have object called element. I want to compute local date-time
element.country='us'
element.subdivision='la'
element.date_time_utc=parser.parse(split_line[13].strip())
element.date_time_local