- 論壇徽章:
- 0
|
How to Setup Timezone for India on Solaris5.8/UNIX
Intro
The timezone used in India is known both by IST and Asia/Calcutta, which is equivalent to GMT+5.5. Normally it is NOT installation in Solaris5.8/UNIX, and this article will guide you steps of installing timezone for india.
About IST (Indian Standard Time)
The most interesting thing about the IST timezone is that it is 5.5 hours offset from GMT. IST is one of a very small number of timezones that differ by half an hour instead of an hour from adjacent timezones.
Setup Timexone for India on Solaris5.8/UNIX
1) Login as root.
Unix command: su
2) Go to the timezone source file directory and issue the zic command to compile the new particular timezone that you are interested in generating, which is Asia for India.
Unix command:
#cd /usr/share/lib/zoneinfo/src/
#zic asia
Once the new timezone is compiled, you can look in the /usr/share/lib/timezone/Asia directory and you will notice that many new files have been created.
3) To set the system time to use the new timezone of Inida, edit the file /etc/default/init and change the TZ line as below:
TZ=Asia/Calcutta
4) Reboot.
5) Adjust date and time to local accurate setting, using date command.
Unix command:
#date 01122047082005
Wed Jan 12 20:47:08 IST 2005
本文來(lái)自ChinaUnix博客,如果查看原文請(qǐng)點(diǎn):http://blog.chinaunix.net/u1/53361/showart_459275.html |
|