Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How can I change the timezone?

timezone
0
Posted

How can I change the timezone?

0

Updated: 05/03/02 The timezone is dtermined by reading the ‘TZ’ environment variable. This variable is set when you execute ‘set_parms timezone’. Set_parms edits the file ‘/etc/TIMEZONE,’ which exports the ‘TZ’ environment variable. When you reboot after executing set_parms, the file /etc/TIMEZONE will be read and your TZ variable set to the value you specified. The value is in the format: [:]STDoffset[DST[offset][,rule]] For example: PST8PDT for the U.S. Pacific Time Zone See the environ(5) manpage for a detailed description of the format. Note, the offset for daylight savings time is supplied by the ‘/usr/lib/tztab’ configuration file. libc functions like ctime use the ‘TZ’ variable to determine the timezone.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123