Releases
v2.6.3
Compare
Sorry, something went wrong.
No results found
English
Fix bug with the same results in different countries using IsWeekend and IsWeekday methods.
Fix bug carbon.Parse("").StdTime() cause a nil pointer panic. #294
Change errors from private method to public method.
Change the default start date of the week from Sunday to Monday
Change the year of MinValue from -9998 to 1
Change weeksPerLongYear constant to WeeksPerLongYear
Add benchmark test files xxx_bench_test.go
Add IsEpoch method to report whether is a unix epoch time(1970-01-01 00:00:00 +0000 UTC).
Add WeekEndsAt method to get end day of the week.
Add SetWeekendDays method to set weekend days of the week.
Add DefaultWeekStartsAt global variable to store weekend days of the week.
中文
修复 IsWeekend, IsWeekday 方法不同国家返回结果一致的 bug
修复 StdTime 方法空指针引起的异常 #294
将错误方法由 私有 方法改成 公开 方法
将一周默认开始日期从 周日 改成 周一
将 MinValue 方法的年份从 -9998 更改为 1
将 weeksPerLongYear 常量更名为 WeeksPerLongYear
新增性能测试文件 xxx_bench_test.go
新增 IsEpoch 方法用于判断是否是 UNIX 纪元时间(1970-01-01 00:00:00 +0000 UTC)
新增 WeekEndsAt 方法用于获取一周的结束日期
新增 SetWeekendDays 方法用于设置一周周末日期
新增 DefaultWeekStartsAt 全局变量用于存储默认一周休息日
You can’t perform that action at this time.