How to set the date and time in Archlinux

Quickly set the current date and time in Archlinux.

1. Check the current time.
[root@atom ~]# timedatectl status
Local time: Mon 2013-01-21 08:57:21 MYT
Universal time: Mon 2013-01-21 00:57:21 UTC
RTC time: Mon 2013-01-21 00:57:21
Timezone: Asia/Kuala_Lumpur (MYT, +0800)
NTP enabled: no
NTP synchronized: no
RTC in local TZ: no
DST active: n/a

2. Set the correct date and time.
[root@atom ~]# timedatectl set-time "2013-01-21 00:59:00"

3. Check again, make sure the date and time looks right now.
[root@atom ~]# timedatectl status
Local time: Mon 2013-01-21 00:59:14 MYT
Universal time: Sun 2013-01-20 16:59:14 UTC
RTC time: Sun 2013-01-20 16:59:14
Timezone: Asia/Kuala_Lumpur (MYT, +0800)
NTP enabled: no
NTP synchronized: no
RTC in local TZ: no
DST active: n/a

© 2008-2012 The Danesh Project
Powered by Wordpress and made by Guerrilla. Hosted at ServerFreak