Quantcast
Channel: coder i|o: #strings
Viewing all articles
Browse latest Browse all 138

Fun with pytz, dateutil and Python time zones

$
0
0

From gefira.pl:

Below is a way to convert datetime strings between time zones. Note that in my case I had to convert between UTC and a user-provided time zone and back. I was given either a UTC timestamp and had to find the user's local date and time or a pair of strings, one for the user's local time and another one for their time zone, out of which a UTC had to be constructed.

Click here to read more

Tagged: #python #strings


Viewing all articles
Browse latest Browse all 138

Trending Articles