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“.


Leave a Reply

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

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

Facebook photo

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

Connecting to %s