tzslect date hwclock ntpdate - modify system time

 PREAMBLE

Tutorial expresses the author's subjective ideas and conform to AAL license.



Description

tzselect is for viewing timezones.
date to print the system date or time and also to set it.
hwclock to display & set hardware clock to any time.



Intro

Because all that are console applications, use you preferred terminal.
To be sure what time and date you are now use timeanddate.com



Next Level

TZSELECT
Easiest
$ tzselect
type the cipher or the number that correspond to desired continent and country and hit Yes at the and.


DATE
For example we now that today is 28 Feb 2025 17:36 (PM), so we do
# date 022817362025
MonthDateHourMinutesYear
If you just print date it will show you current date and hour.


HWCLOCK
Let's war begin. 
# hwclock --get
or
# hwclock --show

Why so? RTFM

To set hardware clock use
# hwclock --set --date "10/27/2009 22:19:05"
"Month/Date/Year Hour:Minutes:Seconds"

To adjust system time to hardware use -s option
# hwclock -s

FIX ALL THAT SHIT
# ntpdate pool.ntp.org



Last thoughts

Be shure that I will update tutorial in the future. So, stay on tune. And, in case it was useful, share please with your fellows or comment something regarded the subject.

For donations use that link.

Comments