码迷,mamicode.com
首页 > 编程语言 > 详细

Java日期格式化参数对照表

时间:2018-06-23 19:13:16      阅读:178      评论:0      收藏:0      [点我收藏+]

标签:style   width   time   idt   lsp   marker   table   日期格   ext   

 

Symbol

Meaning

Presentation

Example

G

era designator

Text

AD

y

year

Number

2009

M

month in year

Text & Number

July & 07

d

day in month

Number

10

h

hour in am/pm (1-12)

Number

12

H

hour in day (0-23)

Number

0

m

minute in hour

Number

30

s

second in minute

Number

55

S

millisecond

Number

978

E

day in week

Text

Tuesday

D

day in year

Number

189

F

day of week in month

Number

2 (2nd Wed in July)

w

week in year

Number

27

W

week in month

Number

2

a

am/pm marker

Text

PM

k

hour in day (1-24)

Number

24

K

hour in am/pm (0-11)

Number

0

z

time zone

Text

Pacific Standard Time

Java日期格式化参数对照表

标签:style   width   time   idt   lsp   marker   table   日期格   ext   

原文地址:https://www.cnblogs.com/WEB-PHP/p/9209565.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!