Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

If I set the time zone environment variable: TZ="Foo/Bar", how does date handle different time zones and display the date accordingly?

share|improve this question

closed as not a real question by Indrek, TFM, BBlake, ChrisF, Synetech Nov 13 '12 at 22:13

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

Short answer

GNU utils use the tz database that contains a representation of current, future and historical timezones and transform the output accordingly.

Long answer

Run info coreutils 'date input formats' if you have the full manual installed and read onwards for context, and specifically read 28.10 Specifying time zone rules. If the manual is not installed, you can read it read it online.


Dates, time and time zones are really tricky to keep track of :-) .

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.