
本站地址:http://www.bajiao123.com

JDK5.0的11个主要新特征-Java技术
Table 3-7. Date and Time Conversion Characters
Conversion Character
Type
Example
C
Complete date and time
Mon Feb 09 18:05:19 PST 2004
F
ISO 8601 date
2004-02-09
D
U.S. formatted date (month/day/year)
02/09/2004
T
24-hour time
18:05:19
r
12-hour time
06:05:19 pm
R
24-hour time, no seconds
18:05
Y
Four-digit year (with leading zeroes)
2004
y
Last two digits of the year (with leading zeroes)
04
C
First two digits of the year (with leading zeroes)
20
B
Full month name
February
b or h
Abbreviated month name
Feb
m
Two-digit month (with leading zeroes)
02
d
Two-digit day (with leading zeroes)
09
e
Two-digit day (without leading zeroes)
9
A
Full weekday name
Monday
a
Abbreviated weekday name
Mon
j
Three-digit day of year (with leading zeroes), between 001 and 366
069
上一页 [1] [2] [3] [4] [5] [6] [7] [8] 下一页
本站地址:http://www.bajiao123.com

