If I set the time zone environment variable:
TZ="Foo/Bar", how does
date handle different time zones and display the date accordingly?
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.
GNU utils use the tz database that contains a representation of current, future and historical timezones and transform the output accordingly.
Dates, time and time zones are really tricky to keep track of :-) .