##Overview
用 Java 写的一个 Time 类,支持时间戳转换、星期换算、格式化时间解析和输出、时区和并不完善的时间加减功能。
功能上主要是实现朱大 @Jude95 提供的 ITime 接口。
##Dependencie 在依赖里添加
compile 'cn.com.caoyue.util:time:1.2.1'
##Javadoc http://haruue.github.io/Time_Class_Util
##Something Important
-
format(String format)
以及parse(String time, String format)
中的format
的详细说明:- 对于
parse(String time, String format)
函数,单字母形式和多字母形式是等价的,如m
与mm
甚至是mmmmmmmmm
都是等价的; - 对于
parse(String time, String format)
函数,参数与参数之间必须有非数字字符间隔,类似于"20151015230000"
是无法用"yyyyMMddHHmmss"
进行解析的; - 对于
format(String format)
函数,y
和yyyy
是等价的; - 对于
format(String format)
函数,MM
与M
,dd
与d
,HH
与H
,mm
与m
,ss
与s
这种有一个字母和两个字母区分的形式,两个字母表示如果这一位不满两位数则补 0 ,一个字母则这种情况不补 0 ;
- 对于
##Known BUG & Troubleshooting 由于暂时没有进行充分的调试,当前没有发现 BUG ,如果你发现了新的 BUG ,欢迎提交 issue ,万分感谢 !
##Developed By
Haruue Icymoon [email protected]
本项目作为 红岩网校 - 移动开发部 的第 2 次作业 的 Level 4 部分。
##License Apache License 2.0