Commit Graph

35 Commits

Author SHA1 Message Date
Peleus
22a30f8e6d 优化 ParseByLayout 方法中时区为空时的处理 2024-10-11 22:54:59 +08:00
Peleus
cbc7068d93 将空时间字符串当做错误 2024-04-09 20:15:08 +08:00
Peleus
6b3822fa1b 增加对 U, V, X, Z 符号的解析支持 2023-12-26 22:12:48 +08:00
Peleus
0016152ff1 timezone[len(timezone)-1] -> timezone[0] 2023-11-30 15:06:56 +08:00
Peleus
625528665b Remove layouts variable from parser.go to helper.go 2023-08-27 11:58:35 +08:00
gouguoyin
210225ac50 Parse() 方法增加对 now、yesterday和tomorrow 的解析 2022-11-05 12:24:25 +08:00
gouguoyin
6afbf0be9a 增加 parse() 方法 对 now、yesterday和tomorrow 的解析 2022-11-04 10:56:50 +08:00
gouguoyin
af107b863e 更新解析支持格式 2022-11-03 21:44:46 +08:00
gouguoyin
2a7e5e9cb1 新增解析支持格式 2022-11-02 15:47:51 +08:00
gouguoyin
4d89c2db93 优化 Parse() 方法 2022-10-28 15:33:12 +08:00
gouguoyin
857353d390 优化逻辑 2022-10-27 14:59:31 +08:00
gouguoyin
8fc500a156 增加单元测试用例 2022-10-27 14:46:59 +08:00
gouguoyin
005fa9e1c7 优化 Parse 方法 2022-10-27 00:38:20 +08:00
gouguoyin
dfa56d80ba 优化 ParseByLayout() 方法 2022-08-02 15:22:03 +08:00
gouguoyin
0ae035549a 2.1.5 修改注释 2022-05-01 09:09:25 +08:00
gouguoyin
956087cb0a v2.1.3 XXXFormat->XXXLayout 2022-04-24 22:15:44 +08:00
gouguoyin
35f78a7f8a Parse()方法支持 ShortDateTimeMilliFormat、ShortDateTimeMicroFormat、ShortDateTimeNanoFormat 格式的解析 2022-04-17 22:45:10 +08:00
gouguoyin@juzifenqi.com
d6c6c20913 update comment 2022-04-14 11:32:01 +08:00
gouguoyin@juzifenqi.com
de3e7813d1 精简代码,Parse()方法新增对RFC3339Format、RFC3339MilliFormat、RFC3339MicroFormat、RFC3339NanoFormat的解析支持 2022-04-12 17:38:11 +08:00
gouguoyin
f34e6e6cd4 update 2021-11-17 13:40:44 +08:00
gouguoyin
aae4528de8 Optimize code 2021-11-17 11:23:33 +08:00
gouguoyin
885a6d824f The public field Time in the carbon structure is changed to private field time 2021-09-06 11:05:04 +08:00
gouguoyin
8e5e439ac1 fix ParseByFormat bug 2021-08-16 09:47:46 +08:00
gouguoyin
97b8a3ad09 update comment 2021-08-10 10:58:43 +08:00
gouguoyin
617be87c9a optimize the judgment of the number of optional parameters 2021-07-31 13:34:27 +08:00
gouguoyin
8a34fc69ec add English comment 2021-07-28 15:18:05 +08:00
gouguoyin
0b7013d3a3 修改注释信息 2021-07-25 22:08:25 +08:00
gouguoyin
4336144124 增加可选参数timezone 2021-07-23 11:04:56 +08:00
gouguoyin
82ed3c264c 增加对特殊字符串的判断 2021-07-19 09:54:47 +08:00
gouguoyin
17617f9b8e 为避免New()和Now()混淆,将New()方法改回NewCarbon()方法 2021-07-13 23:18:34 +08:00
gouguoyin
ad967cccdb NewCarbon()改为New() 2021-06-29 18:19:14 +08:00
gouguoyin
f62b957c89 SetTimezone(Local)改为NewCarbon() 2021-06-17 16:28:03 +08:00
gouguoyin
8e5a3df707 统一代码风格 2021-04-05 16:30:22 +08:00
gouguoyin
bf4e20827a 1.3.6 2021-03-25 17:56:25 +08:00
gouguoyin
d3f0aec069 v1.3.2按照功能拆分文件 2021-02-18 14:32:31 +08:00