I want to compare UTC timestamps from a log file with local timestamps. When creating the local datetime object, I use something like:
datetime
>>&
Try dateutil, which has a tzlocal type that does what you need.