内容简介:carbon 是一个轻量级、语义化、对开发者友好的Golang时间处理库,支持链式调用、农历和gorm、xorm等主流orm 如果您觉得不错,请给个 star 吧 github:github.com/golang-module/carbon gitee:gitee.com/go-packag...
carbon 是一个轻量级、语义化、对开发者友好的Golang时间处理库,支持链式调用、农历和gorm、xorm等主流orm
如果您觉得不错,请给个 star 吧
github:github.com/golang-module/carbon
gitee:gitee.com/go-package/carbon
更新日志
- 修复CreateFromDate()和CreateFromTime()方法缺少时区的bug
- 删除ToUtcString()方法,用ToString(carbon.UTC)代替
- 新增Format()方法对C和Q的解析,获取当前世纪数和季节数
- 新增IsInvalid()方法判断是否无效
- 新增Location()方法获取位置,如
PRC - 新增Offset()方法获取获取距离UTC时区的偏移量,如
28800 - 新增Layout()方法输出指定布局的字符串
- 新增ToIso8601String()方法获取ISO8601格式字符串,如
2020-08-05T13:14:15+08:00 - 优化Now()、Yesterday()、Tomorrow()方法,新增可选参数timezone
- 优化CreaterFromXXX()系列方法,新增可选参数timezone
- 优化ToXXXString()系列方法,新增可选参数timezone
- 优化CreateFromTimestamp()方法,支持负数时间戳
- 优化单元测试覆盖场景,单元测试覆盖率提升到99%
- 将各类错误独立到errors.go文件,并修改部分错误文案
以上就是本文的全部内容,希望对大家的学习有所帮助,也希望大家多多支持 码农网
猜你喜欢:本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们。
An Introduction to Probability Theory and Its Applications
William Feller / Wiley / 1991-1-1 / USD 120.00
Major changes in this edition include the substitution of probabilistic arguments for combinatorial artifices, and the addition of new sections on branching processes, Markov chains, and the De Moivre......一起来看看 《An Introduction to Probability Theory and Its Applications》 这本书的介绍吧!