I was looking at some book of system programming. It mentioned to use a variable TZ
with a colon separated list which is used from /usr/share/zoneinfo
. Probably the book is a bit outdated.
I checked on my Ubuntu system
/usr/share/zoneinfo/Asia$ file Oral
gives following output
Oral: timezone data, version 2, 14 gmt time flags, 14 std time flags, no leap seconds, 51 transition times, 14 abbreviation chars
I tried opening it in vi but the text could not be read.
I also tried reading /etc/localtime
but here also it could not be read.
How can I basically read above type of files?
Where is TZ environment variable defined in Ubuntu 10.04?