tutes-dump/site-tutorials/FAQ/TECHIES/05

16 lines
508 B
Plaintext
Executable File

[05] HOW CAN I CHANGE THE SYSTEM TIME TO REFLECT MY TIMEZONE?
You need to set the environment variable TZ with your
timezone. SDF is set to UTC (universal earth time). If
you want the system date to be offset to your timezone,
try the following:
$ date
Wed Jun 23 18:26:20 UTC 2004
$ export TZ=CST6CDT
$ date
Wed Jun 23 13:28:22 CDT 2004
CST6CDT will offset system time to US Central time. For
a listing of timezones, look in /usr/share/zoneinfo