日期格式的一些代表含义(SimpleDateFormat)
2008-09-07 23:57
399 查看
字母 日期或时间元素 表示 示例
G Era 标志符 Text AD
y 年 Year 1996; 96
M 年中的月份 Month July; Jul; 07
m 小时中的分钟数 Number 30
w 年中的周数 Number 27
W 月份中的周数 Number 2
D 年中的天数 Number 189
d 月份中的天数 Number 10
F 月份中的星期 Number 2
E 星期中的天数 Text Tuesday; Tue
a Am/pm 标记 Text PM
H 一天中的小时数(0-23) Number 0
h am/pm 中的小时数(1-12) Number 12
k 一天中的小时数(1-24) Number 24
K am/pm 中的小时数(0-11) Number 0
s 分钟中的秒数 Number 55
S 毫秒数 Number 978
z 时区 General time zone Pacific Standard Time; PST; GMT-08:00
Z 时区 RFC 822 time zone -0800
G Era 标志符 Text AD
y 年 Year 1996; 96
M 年中的月份 Month July; Jul; 07
m 小时中的分钟数 Number 30
w 年中的周数 Number 27
W 月份中的周数 Number 2
D 年中的天数 Number 189
d 月份中的天数 Number 10
F 月份中的星期 Number 2
E 星期中的天数 Text Tuesday; Tue
a Am/pm 标记 Text PM
H 一天中的小时数(0-23) Number 0
h am/pm 中的小时数(1-12) Number 12
k 一天中的小时数(1-24) Number 24
K am/pm 中的小时数(0-11) Number 0
s 分钟中的秒数 Number 55
S 毫秒数 Number 978
z 时区 General time zone Pacific Standard Time; PST; GMT-08:00
Z 时区 RFC 822 time zone -0800
相关文章推荐
- 利用SimpleDateFormat 和MessageFormat 向数据库中插入yyyy-mm-dd 和yyyy-MM-dd HH:mm:ss的日期格式
- Java中有关日期的一些常见运算与应用(Date,DateFormat,SimpleDateFormat)
- Java日期转换SimpleDateFormat格式大全
- 日期格式 SimpleDateFormat
- Java处理日期格式大全Date format SimpleDateFormat
- 发布首款支持Shift/Ctrl多选的国产日历控件,界面仿Twitter风格,支持中文日期类型,支持SImpleDateFormat格式,支持change等自定义事件,全中文注释和API,欢迎支持
- 日期格式私人定制——SimpleDateFormat
- Java日期转换SimpleDateFormat格式大全
- java日期SimpleDateFormat格式
- SimpleDateFormat的java的日期格式
- Java日期转换SimpleDateFormat格式大全
- SimpleDateFormat日期格式转换
- java日期格式大全 format SimpleDateFormat
- 发布首款支持Shift/Ctrl多选的国产日历控件,界面仿Twitter风格,支持中文日期类型,支持SImpleDateFormat格式,支持change等自定义事件,全中文注释和API,欢迎支持
- java日期格式大全 format SimpleDateFormat
- SimpleDateFormat的格式原来可以是任意的,不需要是正确的日期格式
- java日期格式大全 format SimpleDateFormat
- java日期格式大全 format SimpleDateFormat(转)
- java 日期格式SimpleDateFormat例子
- java日期格式大全 format SimpleDateFormat