z/OS UNIX System Services User's Guide
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


Setting your local time zone

z/OS UNIX System Services User's Guide
SA23-2279-00

The shell and utilities assume that the times stored in the file system and returned by the operating system are stored using the Greenwich mean time (GMT) or Universal Time Coordinated (UTC) as a universal reference. In the system-wide /etc/profile, the TZ environment variable maps that reference time to the local time specified with the variable. You can use a different time zone by setting the TZ variable in your .profile.

The three primary fields in the time zone specification are:

  1. The local standard time, abbreviated—for example, EST or MSEZ.
  2. The time offset west from the universal reference time, typically specified in hours (minutes and seconds are optional). A minus sign (-) indicates an offset east of the universal reference time.
  3. The daylight saving time zone, abbreviated—for example, EDT. If this and the first field are identical or this value is missing, daylight saving time conversion is disabled. Optionally, you can specify an additional rule that indicates when daylight saving time starts and ends.
Example: If you want to set your time zone to Eastern Standard Time (EST) and export it, specify:
export TZ="EST5EDT"
  • EST is Eastern Standard Time, the local time zone.
  • The standard time zone is 5 hours west of the universal reference time.
  • EDT is Eastern Daylight Saving time zone.
For complete information about how to specify the local time zone, see Appendix I. Setting the Local Time Zone with the TZ Environment Variable in z/OS UNIX System Services Command Reference.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014