I need to convert UTC time, (on ec2 instance) to PST. I am trying to do this.
from datetime import datetime
from pytz import timezone
import pytz
date_form
from datetime import datetime
from pytz import timezone
import pytz
date_format='%m/%d/%Y %H:%M:%S %Z'
date = datetime.now(tz=pytz.utc)
print 'Current date & time is:', date.strftime(date_format)
date = date.astimezone(timezone('US/Pacific'))
print 'Local date & time is :', date.strftime(date_format)
seems to work for me :) - timezones are confusing, slowly making a plan of what I actually want to do helps me most of the time