The meaning of java date format

G Era Identifier Text AD
y Year 1996; 96
M Month in the year Month July; Jul; 07
w Week in the year Number 27
W Week in the month Number 2
D Day in the year Number 189
d Month in the month Number of days Number 10
F Day of the month Number 2
E Number of days of the week Text Tuesday; Tue
a Am/pm mark Text PM
H Number of hours in a day (0-23) Number 0
k Number of hours in a day (1-24) Number 24
K the hour in am/pm (0-11) Number 0
h am/pm the hour (1-12) Number 12
m the minute in the hour Number 30
s the second in the minute Number 55
S millisecond Number 978
z     时区     General time zone     Pacific Standard Time; PST; GMT-08:00
Z     时区     RFC 822 time zone     -0800

————————————————
Copyright statement: This article is the original article of the CSDN blogger "wangsimiao118", which follows the CC 4.0 BY-SA copyright agreement. Please attach the original source link and this statement for reprinting .
Original link: https://blog.csdn.net/wangsimiao118/article/details/69085010

Guess you like

Origin blog.csdn.net/ClearLoveQ/article/details/105263171