Setting date and time

Whenever I need to adjust my computer’s clock, I set the right time in the BIOS. I am using XFCE, which does not provide a graphical tool for this (unlike KDE). Recently, I searched for a smarter way to do it and came across these nice examples.

Setting the date as the example says is as simple as:

date +%Y%m%d -s "20150104"

This will reset your clock to 00:00:00. The date format is “YYYYMMDD“. Following the instructions, I adjusted my clock:

date +%T -s "12:25:00"

Where the time format is “HH:MM:SS“.

Neat!

Leave a comment

Filed under desktop, system

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s