{"id":1723,"date":"2007-10-07T02:46:26","date_gmt":"2007-10-06T19:46:26","guid":{"rendered":"http:\/\/www.jfdesignnet.com\/?p=1723"},"modified":"2007-10-07T02:46:26","modified_gmt":"2007-10-06T19:46:26","slug":"set-date-and-time-from-konsole","status":"publish","type":"post","link":"https:\/\/www.jfdesignnet.com\/?p=1723","title":{"rendered":"set date and time from konsole"},"content":{"rendered":"<p style=\"text-align: justify;\"><a href=\"http:\/\/www.jfdesignnet.com\/wp-content\/uploads\/2011\/05\/time.jpg\" rel=\"lightbox[1723]\"><img decoding=\"async\" loading=\"lazy\" class=\"alignright size-medium wp-image-1724\" title=\"time\" src=\"http:\/\/www.jfdesignnet.com\/wp-content\/uploads\/2011\/05\/time-300x238.jpg\" alt=\"\" width=\"154\" height=\"124\" \/><\/a>Use the date command to display the current date and time or set the  system date \/ time over ssh session. You can also run the date command  from X terminal as root user. This is useful if the Linux server time and\/or date is wrong, and you need to set it to new values from the shell prompt. You must login as root user to use date command.<\/p>\n<h2>Linux Set Date<\/h2>\n<p>Use the following syntax to set new data and time:<br \/>\n<strong>date &#8211;set=&#8221;STRING&#8221;<\/strong><\/p>\n<p>For example, set new data to 2 Oct 2006 18:00:00, type the following command as root user:<br \/>\n<code># date -s \"2 OCT 2006 18:00:00\"<\/code><br \/>\nOR<br \/>\n<code># date --set=\"2 OCT 2006 18:00:00\"<\/code><\/p>\n<p>You can also simplify format using following syntax:<br \/>\n<code># date +%Y%m%d -s \"20081128\"<\/code><\/p>\n<h3>Linux Set Time<\/h3>\n<p>To set time use the following syntax:<br \/>\n<code># date +%T -s \"10:13:13\"<\/code><br \/>\nWhere,<\/p>\n<ul>\n<li>10: Hour (hh)<\/li>\n<li>13: Minute (mm)<\/li>\n<li>13: Second  (ss)<\/li>\n<\/ul>\n<p>Use %p locale\u2019s equivalent of either AM or PM, enter:<br \/>\n<code># date +%T%p -s \"6:10:30AM\"<br \/>\n# date +%T%p -s \"12:10:30PM\"<\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Use the date command to display the current date and time or set the system date \/ time over ssh session. You can also run the date command from X terminal as root user. This is useful if the Linux server time and\/or date is wrong, and you need to set it to new values [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9],"tags":[213,214,239],"_links":{"self":[{"href":"https:\/\/www.jfdesignnet.com\/index.php?rest_route=\/wp\/v2\/posts\/1723"}],"collection":[{"href":"https:\/\/www.jfdesignnet.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.jfdesignnet.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.jfdesignnet.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.jfdesignnet.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1723"}],"version-history":[{"count":0,"href":"https:\/\/www.jfdesignnet.com\/index.php?rest_route=\/wp\/v2\/posts\/1723\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.jfdesignnet.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1723"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.jfdesignnet.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1723"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.jfdesignnet.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1723"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}