Linux time command date

  • date: Print time

  

  • date "+ customized information": custom format printing time

    - date "+% H": print the number of hours the current time

    

    - date "+% H% M% S": When printing the current time Minutes

    

    - date "+% H:% M:% S": When printing the current time every minute, separated by a colon

    

    - date "+% H% M minutes when the% S seconds": custom characters separated by

    

    - date "+% Y years now": Year show

    

Guess you like

Origin www.cnblogs.com/VCplus/p/11531109.html