How to set date on Slackware (and/or other Linux machine)

Posted: May 19, 2012 in Linux

Post this so next time I won’t waste my time trying a set of date format ;)
Here’s the syntax :

root@k-elektronik:~# date ‘-s 2012-05-19 10:06:06 +0700’

Note :

-s : string

2012-05-19 : YYYY/MM/DD

10:06:06 : HH:MM:SS

+0700 : timezone

Advertisements

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