TimeZone
From ThorxWiki
(Difference between revisions)
(reclarify, better script now I know about zdump ;)) |
m (minor update for paths) |
||
Line 1: | Line 1: | ||
Because people keep thinking that the "EST" in my `date` command must be incorrect... |
Because people keep thinking that the "EST" in my `date` command must be incorrect... |
||
− | Please run the following command (should be fine in linux, under solaris change the path to search under to /usr/share/lib/zoneinfo) |
+ | Please run the following command (debian styled linux has zdump in /usr/bin/, whilst redhat styled has it in /usr/sbin, whilst under solaris you'll need to change the find search path to /usr/share/lib/zoneinfo (and track down zdump, which I think will be in /usr/sbin, but don't quote me) :) |
− | find /usr/share/zoneinfo -type f | xargs /usr/sbin/zdump | grep EST |
+ | find /usr/share/zoneinfo -type f | xargs /usr/bin/zdump | grep EST |
− | Now try it without the grep, and note the time zone identifiers, ...these are '''incorrectly assumed by most people to be unique'''. I believe (without references) that the timezone acronyms are based on local names - there is no global cooperation in keeping the namespace clean. |
+ | Now try it without the grep, and note all the time zone identifiers, ...these are '''incorrectly assumed by most people to be unique'''. I believe (without references) that the timezone acronyms are based on local names - there is no global cooperation in keeping the namespace clean. |
Revision as of 17:12, 4 May 2010
Because people keep thinking that the "EST" in my `date` command must be incorrect...
Please run the following command (debian styled linux has zdump in /usr/bin/, whilst redhat styled has it in /usr/sbin, whilst under solaris you'll need to change the find search path to /usr/share/lib/zoneinfo (and track down zdump, which I think will be in /usr/sbin, but don't quote me) :)
find /usr/share/zoneinfo -type f | xargs /usr/bin/zdump | grep EST
Now try it without the grep, and note all the time zone identifiers, ...these are incorrectly assumed by most people to be unique. I believe (without references) that the timezone acronyms are based on local names - there is no global cooperation in keeping the namespace clean.