1, self-study--linux learning progress and Tasks "time and Date Management class command"

Source: Internet
Author: User
Tags time and date

Commands for time-date management classes

commands for the time-date management class :

       # Date: Display


      # Date MMDDHHMM[CC]YY.SS: Set


      # Date [+format]


%Y: 4-bit year          
%y: 2-bit year          
%M: Min          
%m: Month          
%d: Day          
%H: When          
%s: Seconds          
%T: Time (separated by colons)          
%d: Date          
%F: Date (separated by crossbar)          

Unix: 1970-01-01 00:00:00
%s: Timestamp: The number of seconds from the beginning of the first Unix period to the moment      

# cal: Show Calendar      
# cal #: Show Calendar for the whole year      

Linux has two clocks:
HC: Hardware clock:
sys: Software clock: Read hardware clock at boot time

# Hwclock     
-S: Based on hardware clock,--hctosys
-W: Based on the system clock,--SYSTOHC

the same line can execute two commands, separated by a semicolon

1, self-study--linux learning progress and Tasks "time and Date Management class command"

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.