How do I get the Olson timezone name (such as Australia/Sydney) corresponding to the value given by C\'s localtime call?
Australia/Sydney
This is the value overridden vi
This will get you the time zone name, according to what's in the TZ variable, or localtime file if unset:
#! /usr/bin/env python import time time.tzset print time.tzname