`
no7beckham
  • 浏览: 94969 次
  • 性别: Icon_minigender_1
  • 来自: 杭州
社区版块
存档分类
最新评论

linux date format

阅读更多

%a

Abbreviated weekday.

%b

Abbreviated month name.

%c

Country-specific date and time format.

%d

Day of month (01-31).

%h

Same as %b .

%j

Julian day of year (001-366).

%k

Hour in 24-hour format, without leading zeros (0-23).

%l

Hour in 12-hour format, without leading zeros (1-12).

%m

Month of year (01-12).

%n

Insert a new line.

%p

String to indicate a.m. or p.m.

%r

Time in %I:%M:%S %p (12-hour) format.

%s

Seconds since "the Epoch," which is 1970-01-01 00:00:00 UTC (a nonstandard extension).

%t

Insert a tab.

%w

Day of week (Sunday = 0).

%x

Country-specific date format based on locale.

%y

Last two digits of year (00-99).

%z

RFC 822-style numeric time zone.

%A

Full weekday.

%B

Full month name.

%D

Date in %m/%d/%y format.

%H

Hour in 24-hour format (00-23).

%I

Hour in 12-hour format (01-12).

%M

Minutes (00-59).

%S

Seconds (00-59).

%T

Time in %H:%M:%S format.

%U

Week number in year (00-53); start week on Sunday.

%V

Week number in year (01-52); start week on Monday.

%W

Week number in year (00-53); start week on Monday.

%X

Country-specific time format based on locale.

%Y

Four-digit year (e.g., 2006).

%Z

Time-zone name.

 

分享到:
评论

相关推荐

    Linux中date命令转换日期提示date: illegal time format问题解决

    前言 很多shell脚本里面需要打印不同格式的时间或日期,以及要根据时间和日期执行操作。延时通常用于脚本执行过程中提供一段...date -j -f %a %b %d %T %Z %Y Sat Sep 29 11:33:00 CST 2018 +%s” 报错: Failed c

    Linux date命令的使用

    date命令用于按照指定格式显示当前时间或者指定的时间,也可以设置系统时间。很多Shell脚本里面需要打印不同格式的时间或日期,以及要根据时间和日期执行操作,此时可以使用date命令来完成。在类Unix系统中,日期被...

    Coding for Linux-Master Linux and expand your programming skills-2019 by James

    Pub Date: 2019 ISBN: n/a Pages: 147 Language: English Format: PDF Size: 141 Mb “That’s what makes Linux so good: you put in something and that effort multiplies. It’s a positive feedback cycle.”...

    linux命令详解date使用方法(计算母亲节和父亲节日期脚本示例)

    常用参数格式:date显示当前日期时间。格式:date mmddHHMM # 简而言之,就是...格式:date +FORMAT根据指定格式显示当前时间。比如 date +%Y-%m-%d 就是以 YYYY-mm-dd 的形式显示当前日期,其中YYYY是年份,mm为月份

    Linux下的rar解压缩工具

    tb<date> Process files modified before <date> in YYYYMMDDHHMMSS format tk Keep original archive time tl Set archive time to latest file tn<time> Process files newer than to<time> Process files ...

    vmtools-linux.iso

    Creating a new installer database using the tar3 format. Installing the content of the package. # 安装过程的画面,全部使用默认值,一直按 Enter 就对了 In which directory do you want to install the binary...

    Linux.Forensics.1515037630

    Linux Forensics is the most comprehensive and up-to-date resource for those wishing to quickly and efficiently perform forensics on Linux systems. It is also a great asset for anyone that would like ...

    linux 0.11 kernel开发包 适于进行Linux OS研究

    diskb.img -- a dos format disk image. can be w/r with mtools. example: mdir b:, mcopy b:, mdel b:filename bochsrc-fd.bxrc -- bochs rc file configured for using disk root iamge. bochsrc-hd.bxrc...

    linux全志R16的linux系统编译的资料_20170502_1655.7z

    全志R16平台编译linux系统V1.0.txt 2017/4/11 13:36 (编译请使用编译android的lichee的选项编译生成的.config文件,不然直接编译会报错!!!!) rootroot@cm-System-Product-Name:/home/wwt/linux_r16$ tar...

    Linux Dictionary

    surrounding pages, headers with useful information (page number, printing date, file name or supplied header), line numbering, symbol substitution as well as pretty printing for a wide range of ...

    类库KYLib 2.0 for Linux.FC9.i686

    KYLib 有针对VC6, VS2003, VS2005等版本库, 而且基于KYLib开发的代码可以在VC不同版本中平稳移植, 甚至可以平稳移植到Linux中。 KYLib 提供的相关函数与Delphi中基本相同, 提供丰富的函数和类, 如: a. 字符串类...

    lichee_20170502_1607_全志R16的linux系统编译需要改动的文件_使用parrotv1.1的内核_没有外层目录.7z

    rootroot@cm-System-Product-Name:/home/wwt/linux_r16$ tar zxvf lichee_parrotv1.1_20161202.tar.gz rootroot@cm-System-Product-Name:/home/wwt/linux_r16$ rootroot@cm-System-Product-Name:/home/wwt/linux_...

    Oracle sqldeveloper without jdk (win+linux)

    SQL Developer uses current database NLS session settings to format date/time and numeric datatypes. If the settings are changed with the ALTER SESSION command, SQL Developer reads the new values from ...

    cmd操作命令和linux命令大全收集

    date /t 、 time /t 使用此参数即“DATE/T”、“TIME/T”将只显示当前日期和时间,而不必输入新日期和时间 set 指定环境变量名称=要指派给变量的字符 设置环境变量 set 显示当前所有的环境变量...

    8-07-14_MegaCLI for linux_windows

    LSIP200232921 (DFCT) MegaCLI displays version for PD in unclear format and the data is not aligned correctly LSIP200232954 (DFCT) Need to Support all the MFC default values in the command AdpSettings...

    类库KYLib 2.0.8.4 for Linux.FC9.i686

    KYLib 有针对VC6, VS2003, VS2005等版本库, 而且基于KYLib开发的代码可以在VC不同版本中平稳移植, 甚至可以平稳移植到Linux中。 KYLib 提供的相关函数与Delphi中基本相同, 提供丰富的函数和类, 如: a. 字符串类...

    类库KYLib 2.0.9.0 for Linux.FC9.i686

    KYLib 有针对VC6, VS2003, VS2005等版本库, 而且基于KYLib开发的代码可以在VC不同版本中平稳移植, 甚至可以平稳移植到Linux中。 KYLib 提供的相关函数与Delphi中基本相同, 提供丰富的函数和类, 如: a. 字符串类...

    pt7c4307 驱动

    #include <linux/module.h> #include <linux/fs.h> #include <linux/miscdevice.h> #include <linux/string.h> #include <linux/init.h> #include <linux/poll.h> #include <linux/proc_fs.h> #include <linux/io...

    类库KYLib 2.1.1.0 for Linux.FC9.i686

    KYLib 有针对VC6, VS2003, VS2005, VS2008等版本库, 而且基于KYLib开发的代码可以在VC不同版本中平稳移植, 以及可以平稳移植到Linux中。 从 KYLib 2.1.1.0 版本开始, 在类中添加详细的注释, 可以很轻松的使用类及...

Global site tag (gtag.js) - Google Analytics