Date system Time
Clock/hwclock Hardware Clock
Cal Calendar
Date
Print or set the system date or time to display or set the system time in a given format
+%a Show Week
+%a full Display week
+%b Show Month
+%b full Display month
+%c E.g.,thu Mar 3 23:05:25 2005
+%c Show century
+%d Show a few days
+%d 08/16/15
+%e Show a few days =+%d
+%f Show All dates eg%y-%m-%d
+%g Display Year
+%h Show Month
+%h Display hours ( in time format
+%i Display hours ( time -based)
+%j shows the day ordinal of a year
+%k =+%h
+%m Month Arabic numerals
+%m minutes A few
+%n New Line
+%n nanoseconds (000000000..999999999)
+%r e.g., 11:11:04 PM
+%r 24-hour hour and minute; Same as%h:%m
+%s Display 1970 year number of seconds
+%s display number of seconds ( system)
+%t Tab
+%t Time;same as%h:%m:%s+%u
+%u Sunday
+%w the Arabic numerals on a Sunday
+%x Show Date 12/31/99
+%x Show Time 23:13:48
+%y display Year (00..99)
+%y Displays the year. For example,
The following separators are available separated
- -0 ^ #
#date +%y-%m-%d
2015-08-16
Modification Time:
Date [MMDDHHMM[[CC]YY][.SS]]
eg
[[Email protected] ~]# date 0816172515.56
Sun 17:25:56 EDT 2015
Hwclock
tools to access hardware time
-S Synchronous system clock to hardware time
-W synchronous Hardware clock to system clock
Cal Calendar Clendar
Cal [2015]
This article is from the "8079848" blog, please be sure to keep this source http://8089848.blog.51cto.com/8079848/1685060
There are two kinds of time on Linux, one is hardware time and the other is System time