您的位置:首页 > 其它

Formatting Time and Date: The Time and Date Format Suffixes

2012-07-10 13:51 651 查看
SuffixReplaced By
aAbbreviated weekday name
AFull weekday name
bAbbreviated month name
BFull month name
cStandard date and time string formatted as day month date hh::mm:ss tzone year
CFirst two digits of year
dDay of month as a decimal (01 to 31)
Dmonth/day/year
eDay of month as a decimal (1 to 31)
Fyear-month-day
hAbbreviated month name
HHour (00 to 23)
IHour (01 to 12)
jDay of year as a decimal (001 to 366)
kHour (0 to 23)
lHour (1 to 12)
LMillisecond (000 to 999)
mMonth as decimal (01 to 13)
MMinute as decimal (00 to 59)
NNanosecond (000000000 to 999999999)
PLocale's equivalent of AM or PM in uppercase
pLocale's equivalent of AM or PM in lowercase
QMilliseconds from 1/1/1970
rhh:mm (12-hour format)
Rhh:mm (24-hour format)
SSeconds (00 to 60)
sSeconds from 1/1/1970 UTC
Thh:mm:ss (24-hour format)
yYear in decimal without century (00 to 99)
YYear in decimal including century (0001 to 9999)
zOffset from UTC
ZTime zone name
http://www.java2s.com/Tutorial/Java/0120__Development/FormattingTimeandDateTheTimeandDateFormatSuffixes.htm
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: