There are two kinds of time on Linux, one is hardware time and the other is System time

Source: Internet
Author: User


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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.