Commit Graph

30 Commits

Author SHA1 Message Date
Peleus
3c895555b4 v2.3.2 CreateFromStdTime 方法新增 timezone 可选参数 2024-01-02 23:24:50 +08:00
Peleus
c7d970a916 精简代码 2023-12-23 22:21:25 +08:00
Peleus
9b3f43d807 精简代码 2023-12-23 22:01:00 +08:00
Peleus
8710cba414 CreateFromDateCreateFromDateMilliCreateFromDateMicroCreateFromDateNano 方法中时分秒默认改成0 2023-12-22 16:02:09 +08:00
Peleus
0016152ff1 timezone[len(timezone)-1] -> timezone[0] 2023-11-30 15:06:56 +08:00
Peleus
1151f84833 将 CreateFromStdTime 方法从 carbon.go 里迁移到 creator.go 2023-09-04 10:48:22 +08:00
gouguoyin
b54403bc7d 修复 CreateFromTimestampMilli() 函数注释错误 2022-06-09 07:40:28 +08:00
gouguoyin
0f0dbb2e12 2.1.6 新增 CreateFromDateXXX() 和 CreateFromTimeXXX() 等系列方法 2022-05-07 09:17:42 +08:00
gouguoyin
dbb19f328b 2.1.6 新增CreateFromDateXXX() 和 CreateFromTimeXXX() 方法 2022-05-05 00:00:23 +08:00
gouguoyin
b58a40b450 v2.1.3 修改注释 2022-04-21 15:04:43 +08:00
gouguoyin
95c7c2052a 更新备注信息 2022-04-17 19:50:24 +08:00
gouguoyin@juzifenqi.com
d6c6c20913 update comment 2022-04-14 11:32:01 +08:00
gouguoyin
f8fdf2bfe3 修复bug 2022-04-13 01:44:54 +08:00
gouguoyin
9d69d05a86 新增CreateFromTimestampMilli()、CreateFromTimestampMicro()、CreateFromTimestampNano()、CreateFromDateTimeMilli()、CreateFromDateTimeMicro()、CreateFromDateTimeNano()方法 2022-04-12 23:22:14 +08:00
gouguoyin@juzifenqi.com
e5842638dd 新增Create()、CreateFromTimestampMilli()、CreateFromTimestampMicro()、CreateFromTimestampNano()方法 2022-04-12 17:31:20 +08:00
gouguoyin@juzifenqi.com
2ceb1ef5ec v2.0.2 2022-04-01 18:19:46 +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
1b99b6e5af The public fields Loc and Lang in the carbon structure are changed to private fields loc and lang 2021-08-16 09:29:07 +08:00
gouguoyin
78487cbdaa update comment 2021-08-10 10:57:22 +08:00
gouguoyin
99de9ba300 optimize the judgment of the number of optional parameters 2021-07-31 13:27:17 +08:00
gouguoyin
8a34fc69ec add English comment 2021-07-28 15:18:05 +08:00
gouguoyin
efc8dcd294 修改备注信息 2021-07-28 09:19:31 +08:00
gouguoyin
4534c6e365 增加可选参数timezone以及对负数时间戳的支持 2021-07-23 10:56:39 +08:00
gouguoyin
31c13e8010 增加CreateFromTimestamp()方法对时间戳是0的判断 2021-07-19 09:51:04 +08:00
gouguoyin
17617f9b8e 为避免New()和Now()混淆,将New()方法改回NewCarbon()方法 2021-07-13 23:18:34 +08:00
gouguoyin
dde24f203e 优化对默认纳秒的处理 2021-07-12 16:23:24 +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
ed392fc388 v1.3.3 2021-02-23 09:32:55 +08:00
gouguoyin
d3f0aec069 v1.3.2按照功能拆分文件 2021-02-18 14:32:31 +08:00