UNIX Date/Time Handling
Timezone Info
Timezone Info
Linux
Linux
cat /etc/sysconfig/clock
Valid timezone settings...
ls -l /usr/share/zoneinfo
Change...
timedatectl / timeconfig
HP-UX
HP-UX
cat /etc/default/tz
Valid timezone settings...
ls -l /usr/lib/tztab
Change...
set_parms timezone
Solaris (11+)
Solaris (11+)
Valid timezone settings...
ls -l /usr/share/lib/zoneinfo
Change...
svccfg -s timezone:default setprop timezone/localtime= astring: <timezone>
svcadm refresh timezone:default
timedatectl
[Linux]timedatectl
timedatectl status
Local time: Thu 2020-09-17 13:47:41 BST Universal time: Thu 2020-09-17 12:47:41 UTC RTC time: Thu 2020-09-17 12:47:41 Time zone: Europe/London (BST, +0100) System clock synchronized: yessystemd-timesyncd.service active: yes RTC in local TZ: no
Set Timezone...
timedatectl set-timezone Europe/London
timeconfig
[Linux] /usr/sbin/timeconfigtimeconfig
cal/ncal
cal/ncal
An oft forgotten command available by default in most variants of UNIX and Linux...
ncal -3 -w -b
cal