{"id":78,"date":"2021-07-05T06:50:11","date_gmt":"2021-07-05T06:50:11","guid":{"rendered":"http:\/\/webhostingpune.co.in\/blog\/?p=78"},"modified":"2021-07-05T07:44:21","modified_gmt":"2021-07-05T07:44:21","slug":"set-time-date-in-linux","status":"publish","type":"post","link":"https:\/\/webhostingpune.co.in\/blog\/set-time-date-in-linux\/","title":{"rendered":"How to Set Time, Date in Linux"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">To have the correct time and date in Linux is very important, a lot of things depends on it. It does not matter if you are using Linux to power your personal computer or you have a Linux server. The server and system clock needs to be on time.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Linux check date from command line<\/strong><\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>date<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Output<\/strong> :<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"393\" height=\"54\" src=\"http:\/\/webhostingpune.co.in\/blog\/wp-content\/uploads\/2021\/07\/image.png\" alt=\"\" class=\"wp-image-79\" srcset=\"https:\/\/webhostingpune.co.in\/blog\/wp-content\/uploads\/2021\/07\/image.png 393w, https:\/\/webhostingpune.co.in\/blog\/wp-content\/uploads\/2021\/07\/image-300x41.png 300w\" sizes=\"auto, (max-width: 393px) 100vw, 393px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Set time and date from the command line<\/strong><\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>Change Time By Manually #<kbd>timedatectl set-time HH:MM:SS<\/kbd><\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code><kbd>Change Date By Manually #timedatectl set-time YYYY-MM-DD<\/kbd><\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">To display the current date and time #timedatectl<\/h2>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"650\" height=\"280\" src=\"http:\/\/webhostingpune.co.in\/blog\/wp-content\/uploads\/2021\/07\/image-1.png\" alt=\"\" class=\"wp-image-80\" srcset=\"https:\/\/webhostingpune.co.in\/blog\/wp-content\/uploads\/2021\/07\/image-1.png 650w, https:\/\/webhostingpune.co.in\/blog\/wp-content\/uploads\/2021\/07\/image-1-300x129.png 300w\" sizes=\"auto, (max-width: 650px) 100vw, 650px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>To have the correct time and date in Linux is very important, a lot of things depends on it. It does not matter if you are using Linux to power your personal computer or you have a Linux server. The server and system clock needs to be on time. Linux check date from command line Output : Set time and date from the command line To display the current date and time #timedatectl<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-78","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/webhostingpune.co.in\/blog\/wp-json\/wp\/v2\/posts\/78","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/webhostingpune.co.in\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/webhostingpune.co.in\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/webhostingpune.co.in\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/webhostingpune.co.in\/blog\/wp-json\/wp\/v2\/comments?post=78"}],"version-history":[{"count":2,"href":"https:\/\/webhostingpune.co.in\/blog\/wp-json\/wp\/v2\/posts\/78\/revisions"}],"predecessor-version":[{"id":82,"href":"https:\/\/webhostingpune.co.in\/blog\/wp-json\/wp\/v2\/posts\/78\/revisions\/82"}],"wp:attachment":[{"href":"https:\/\/webhostingpune.co.in\/blog\/wp-json\/wp\/v2\/media?parent=78"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webhostingpune.co.in\/blog\/wp-json\/wp\/v2\/categories?post=78"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webhostingpune.co.in\/blog\/wp-json\/wp\/v2\/tags?post=78"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}