Commit Graph

360 Commits

Author SHA1 Message Date
gouguoyin
cadb151fa6 更新文档 2021-07-24 12:57:30 +08:00
gouguoyin
fb7764ffac Merge branch 'master' of https://gitee.com/go-package/carbon 2021-07-24 12:39:34 +08:00
gouguoyin
2b13f3932e 更新文档 2021-07-24 12:39:07 +08:00
gouguoyin
9ddc2d83c3 !6 update README.cn.md.
Merge pull request !6 from open-team/N/A
2021-07-23 23:39:29 +00:00
gouguoyin
8c6656023f !7 update README.md.
Merge pull request !7 from open-team/N/A
2021-07-23 23:38:56 +00:00
open-team
810e5cd1e4 update README.md.
修复描述错误
2021-07-23 22:53:28 +00:00
open-team
ca2ae3fb03 update README.cn.md.
修复描述错误
2021-07-23 22:52:24 +00:00
gouguoyin
ec0ac50d38 modify bulid badge link 2021-07-24 01:31:22 +08:00
gouguoyin
c6e5525428 add comment 2021-07-24 01:20:32 +08:00
gouguoyin
c567426677 add comment 2021-07-24 01:14:48 +08:00
gouguoyin
696ed38bd9 replace errors.New(fmt.Sprintf() with fmt.Errorf() 2021-07-24 01:04:11 +08:00
gouguoyin
0ece936bfd add comment 2021-07-24 01:03:39 +08:00
gouguoyin
9dc53d80f3 fix comment error 2021-07-24 01:03:09 +08:00
gouguoyin
88c4e41b64 Use the English READEME.md file as the default file 2021-07-24 00:10:47 +08:00
gouguoyin
7801c368e2 更新文档 2021-07-23 23:16:13 +08:00
gouguoyin
fb3c398448 更新版本号 2021-07-23 23:11:28 +08:00
gouguoyin
fb44a11d7d 更新文档 2021-07-23 23:03:46 +08:00
gouguoyin
1588696461 新增IsInvalid()方法判断是否无效 2021-07-23 23:03:13 +08:00
gouguoyin
f789607156 README.md 2021-07-23 11:55:09 +08:00
gouguoyin
c4ba1b5787 修复缺少时区的bug 2021-07-23 11:08:24 +08:00
gouguoyin
8839c764ac 增加对无效时间的判断 2021-07-23 11:07:13 +08:00
gouguoyin
53a14e7863 增加对无效时间的判断 2021-07-23 11:06:32 +08:00
gouguoyin
4d3841ecc3 完善文档 2021-07-23 11:05:33 +08:00
gouguoyin
4336144124 增加可选参数timezone 2021-07-23 11:04:56 +08:00
gouguoyin
08e8b7302f 优化单元测试覆盖场景 2021-07-23 11:04:10 +08:00
gouguoyin
7e37cd0e22 优化错误处理 2021-07-23 11:03:23 +08:00
gouguoyin
15a8208d5e 增加单元覆盖场景 2021-07-23 11:02:42 +08:00
gouguoyin
f6939a4ae6 优化错误处理 2021-07-23 11:02:03 +08:00
gouguoyin
1f8d83cb44 增加对无效时间的判断 2021-07-23 11:01:00 +08:00
gouguoyin
de2fd3e34f 将各类错误独立到errors.go文件,并修改部分错误文案 2021-07-23 11:00:20 +08:00
gouguoyin
506c6c2b43 新增ToLayoutString()方法及简写Layout()
新增ToIso8601String()方法
新增可选参数timezone
删除ToUtcString()方法,用TocString(carbon.UTC)代替
2021-07-23 10:59:53 +08:00
gouguoyin
9c22213acc 增加可选参数timezone 2021-07-23 10:57:18 +08:00
gouguoyin
4534c6e365 增加可选参数timezone以及对负数时间戳的支持 2021-07-23 10:56:39 +08:00
gouguoyin
a8ee4f7fc8 增加对无效时间的判断 2021-07-23 10:55:38 +08:00
gouguoyin
7abb9a4846 新增IsInvalid()方法判断是否无效 2021-07-23 10:53:27 +08:00
gouguoyin
e0fbbad506 New()、Yestoday()、Tomorrow()方法新增可选参数timezone 2021-07-23 10:52:51 +08:00
gouguoyin
77d54d497d 优化农历算法 2021-07-23 10:48:37 +08:00
gouguoyin
79231528e4 使用github.com/stretchr/testify/assert库替代原生testing库 2021-07-19 14:33:53 +08:00
gouguoyin
40f67c6eff Merge branch 'master' of https://gitee.com/go-package/carbon 2021-07-19 09:56:17 +08:00
gouguoyin
db19009b87 更新文档 2021-07-19 09:55:54 +08:00
gouguoyin
9370c3f3e8 精简代码 2021-07-19 09:55:28 +08:00
gouguoyin
4c1c004f09 精简代码 2021-07-19 09:55:07 +08:00
gouguoyin
82ed3c264c 增加对特殊字符串的判断 2021-07-19 09:54:47 +08:00
gouguoyin
29c4dc1f1b 统一错误格式 2021-07-19 09:54:00 +08:00
gouguoyin
d3c1cc381a 新增对json.UnmarshalJSON()的支持 2021-07-19 09:53:30 +08:00
gouguoyin
5afa018a97 统一错误格式 2021-07-19 09:52:27 +08:00
gouguoyin
69674aa89f 精简代码 2021-07-19 09:52:03 +08:00
gouguoyin
695bab3dc5 精简代码 2021-07-19 09:51:32 +08:00
gouguoyin
31c13e8010 增加CreateFromTimestamp()方法对时间戳是0的判断 2021-07-19 09:51:04 +08:00
gouguoyin
d03163c60a 精简代码 2021-07-19 09:49:56 +08:00