System clocks are often very useful, so be sure to memorize
Date is used to display and modify the current system datetime, mainly for time management, which is the system time software clock
Date month day year. Seconds mmddhhmm[cc|yy].ss Date 121212122013.34 December 12, 2013 12 minutes 34 seconds years and seconds can be unspecified, default is current year and 00 seconds
Date +%d Show Date Month Day year
+%y/%y can display only the year small Y display two-bit year
+%t Hour minute seconds
+%f Month Day
+%h hours
+%m min
+%s seconds
+%s represents the number of seconds elapsed from 1970.1.1 to now, the international Standard Time, and later used for database timing, one day is 86,400 seconds
Date + "This is%y:%m:%d-%h:%m"
Clock/hwclock Hardware Clock
HWCLOCK-W/--SYSTOHW system-brigadier system clock synchronized to hardware clock central
Hwclock-s/--hctosys changing the system clock with hardware
Linux:
RTC Real Time Clock hardware clock every time the opportunity is read from the hardware clock, and then set the system times
When the read from RTC succeeds, no amount of hardware clock will be used to simulate a software clock in the system
Of course, you can also synchronize the clock via the NTP Network Time protocol server.
This article is from the "Feifei Linux" blog, be sure to keep this source http://feifeilinux.blog.51cto.com/7505939/1553031
Linux Road of the first of the common system command system clock settings detailed