{"id":5877,"date":"2019-12-23T14:45:03","date_gmt":"2019-12-23T06:45:03","guid":{"rendered":"https:\/\/www.linuxcool.com\/?p=5877"},"modified":"2019-12-26T20:11:38","modified_gmt":"2019-12-26T12:11:38","slug":"clock","status":"publish","type":"post","link":"https:\/\/www.linuxcool.com\/clock","title":{"rendered":"clock\u547d\u4ee4 – \u8c03\u6574 RTC \u65f6\u95f4"},"content":{"rendered":"\n
clock\u547d\u4ee4\u7684\u4f5c\u7528\u662f\u8c03\u6574 RTC \u65f6\u95f4\u3002RTC\u662f\u7535\u8111\u5185\u5efa\u7684\u786c\u4ef6\u65f6\u95f4\uff0c\u6267\u884c\u8fd9\u9879\u6307\u4ee4\u53ef\u4ee5\u663e\u793a\u73b0\u5728\u65f6\u523b\uff0c\u8c03\u6574\u786c\u4ef6\u65f6\u949f\u7684\u65f6\u95f4\uff0c\u5c06\u7cfb\u7edf\u65f6\u95f4\u8bbe\u6210\u4e0e\u786c\u4ef6\u65f6\u949f\u4e4b\u65f6\u95f4\u4e00\u81f4\uff0c\u6216\u662f\u628a\u7cfb\u7edf\u65f6\u95f4\u56de\u5b58\u5230\u786c\u4ef6\u65f6\u949f\u3002<\/p>\n\n\n\n
\u8bed\u6cd5\u683c\u5f0f: <\/strong>clock [\u53c2\u6570]<\/p>\n\n\n\n \u5e38\u7528\u53c2\u6570\uff1a<\/strong><\/p>\n\n\n\n \u53c2\u8003\u5b9e\u4f8b<\/strong><\/p>\n\n\n\n \u663e\u793a\u5f53\u524d\u786c\u4ef6\u65f6\u949f\u65f6\u95f4\uff1a<\/p>\n\n\n\n \u663e\u793autc\u786c\u4ef6\u65f6\u949f\u65f6\u95f4\uff1a<\/p>\n\n\n\n \u540c\u6b65\u65f6\u95f4\uff1a<\/p>\n\n\n\n clock\u547d\u4ee4\u7684\u4f5c\u7528\u662f\u8c03\u6574 RTC \u65f6\u95f4\u3002RTC\u662f\u7535\u8111\u5185\u5efa\u7684\u786c\u4ef6\u65f6\u95f4\uff0c\u6267\u884c\u8fd9\u9879\u6307\u4ee4\u53ef\u4ee5\u663e\u793a\u73b0\u5728\u65f6\u523b\uff0c\u8c03\u6574\u786c\u4ef6\u65f6 […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[9],"tags":[],"_links":{"self":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/5877"}],"collection":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/comments?post=5877"}],"version-history":[{"count":5,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/5877\/revisions"}],"predecessor-version":[{"id":6131,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/5877\/revisions\/6131"}],"wp:attachment":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/media?parent=5877"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/categories?post=5877"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/tags?post=5877"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}-- -adjust<\/td> \u81ea\u52a8\u8c03\u6574\u786c\u4ef6\u65f6\u949f\u65f6\u95f4<\/td><\/tr> -- -debug<\/td> \u8be6\u7ec6\u663e\u793a\u6307\u4ee4\u6267\u884c\u8fc7\u7a0b\uff0c\u4fbf\u4e8e\u6392\u9519\u6216\u4e86\u89e3\u7a0b\u5e8f\u6267\u884c\u7684\u60c5\u5f62<\/td><\/tr> -- -directisa<\/td> \u4e0d\u901a\u8fc7\u8bbe\u5907\u6587\u4ef6\/etc\/rtc\uff0c\u76f4\u63a5\u5bf9\u786c\u4ef6\u65f6\u949f\u8fdb\u884c\u5b58\u53d6<\/td><\/tr> -- -getepoch<\/td> \u8f93\u51fa\u786c\u4ef6\u65f6\u949f\u7684\u6570\u503c\u5230\u6807\u51c6\u8f93\u51fa<\/td><\/tr> -- -hctosys<\/td> \u65f6\u949f\u540c\u6b65\uff0c\u4f7f\u7cfb\u7edf\u65f6\u949f\u548c\u786c\u4ef6\u65f6\u949f\u540c\u6b65<\/td><\/tr> -- -set- -date<\/td> \u8bbe\u7f6e\u786c\u4ef6\u65f6\u95f4<\/td><\/tr> -- -show<\/td> \u663e\u793a\u786c\u4ef6\u65f6\u949f\u5230\u6807\u51c6\u8f93\u51fa<\/td><\/tr> -- -systohc<\/td> \u7cfb\u7edf\u65f6\u95f4\u5199\u5165\u786c\u4ef6\u65f6\u949f<\/td><\/tr> -- -test<\/td> \u4ec5\u4f5c\u6d4b\u8bd5\uff0c\u5e76\u4e0d\u771f\u7684\u5c06\u65f6\u95f4\u5199\u5165\u786c\u4ef6\u65f6\u949f\u6216\u7cfb\u7edf\u65f6\u95f4<\/td><\/tr> -- -utc<\/td> \u628a\u786c\u4ef6\u65f6\u949f\u4e0a\u7684\u65f6\u95f4\u65f6\u4e3aCUT\uff0c\u6709\u65f6\u4e5f\u79f0\u4e3aUTC\u6216UCT<\/td><\/tr> -- -version<\/td> \u663e\u793a\u7248\u672c\u4fe1\u606f<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n [root@linuxcool ~]# clock\n2019\u5e7412\u670812\u65e5 \u661f\u671f\u56db 15\u65f611\u520607\u79d2 -0.578708 \u79d2<\/pre>\n\n\n\n
[root@linuxcool ~]# clock --utc\n2019\u5e7412\u670812\u65e5 \u661f\u671f\u56db 15\u65f612\u520630\u79d2 -0.442566 \u79d2<\/pre>\n\n\n\n
[root@linuxcool ~]# clock --hctosys<\/pre>\n","protected":false},"excerpt":{"rendered":"