FreeBSD
Installing the base time zone manually
Load the current version of the database time zones:
fetch ftp://ftp.iana.org/tz/tzdata-latest.tar.gz
Unpack the archive:
mkdir tzdata
cd tzdata
tar xzf ../tzdata-latest.tar.gz
/ usr / share / zoneinfo.
ls -l / usr / share / zoneinfo / Asia / Ulaanbaatar
ls -lt / usr / share / zoneinfo / Asia | head
Update the current time zone:
tzsetup -r
Linux
CentOS, Fedora, Red Hat Enterprise Linux дээр YUM ашиглан суулгах
[root@server ~]# yum install tzdata
[root@server ~]# yum update tzdata
Debian, Ubuntu, Linux Mint, MEPIS, Damn Small Linux дээр APT ашиглан суулгах
[root@server ~]# apt-get install tzdata
[root@server ~]# apt-get install tzdata
/usr/share/zoneinfo
[user@server ~]$ wget ftp://elsie.nci.nih.gov/pub/tzdata2009b.tar.gz
[user@server ~]$ tar -xvzf tzdata2009b.tar.gz
[user@server ~]$ zic -d zoneinfo asia
[user@server ~]$ cd zoneinfo
[user@server zoneinfo]$
[root@server zoneinfo]# cp -r * /usr/share/zoneinfo/
[root@server zoneinfo]# cp -r * /usr/share/zoneinfo/
cp: cannot create regular file `/usr/share/zoneinfo/': Is a directory
[root@server zoneinfo]#
[root@server zoneinfo]# cp -r * /usr/lib/zoneinfo/
[user@server ~]$ zdump -v Asia/Ulaanbaatar | grep 2009
Asia/Ulaanbaatar Sun Mar 8 07:59:59 2009 UTC = Sun Mar 8 01:59:59 2009 CST isdst=0 gmtoff=-21600
Asia/Ulaanbaatar Sun Mar 8 08:00:00 2009 UTC = Sun Mar 8 03:00:00 2009 CDT isdst=1 gmtoff=-18000
Asia/Ulaanbaatar Sun Nov 1 06:59:59 2009 UTC = Sun Nov 1 01:59:59 2009 CDT isdst=1 gmtoff=-18000
Asia/Ulaanbaatar Sun Nov 1 07:00:00 2009 UTC = Sun Nov 1 01:00:00 2009 CST isdst=0 gmtoff=-21600
[user@server ~]$
Windows
Өөрийн системд тохирсон шинэчлэлийг татаж суусгах шаардлагатай
Mac OS
/usr/sbin/zdump -v
/usr/sbin/zdump -v /usr/share/zoneinfo/Asia/Ulaanbaatar | grep 2007
foo$ zdump -v /etc/localtime | grep 2007
/etc/localtime Sun Mar 11 06:59:59 2007 UTC = Sun Mar 11 01:59:59 2007 EST isdst=0
/etc/localtime Sun Mar 11 07:00:00 2007 UTC = Sun Mar 11 03:00:00 2007 EDT isdst=1
/etc/localtime Sun Nov 4 05:59:59 2007 UTC = Sun Nov 4 01:59:59 2007 EDT isdst=1
/etc/localtime Sun Nov 4 06:00:00 2007 UTC = Sun Nov 4 01:00:00 2007 EST isdst=0