go-carbon 1.2.3 版本发布了,新增毫秒、微妙、纳秒级时间戳输出

栏目: 软件资讯 · 发布时间: 4年前

内容简介: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

// 使用github库
go get -u github.com/golang-module/carbon

import (
    "github.com/golang-module/carbon"
)

// 使用gitee库
go get -u gitee.com/go-package/carbon

import (
    "gitee.com/go-package/carbon"
)

更新日志

  • 新增测试覆盖率报告文件coverage.html
  • CreateFromTimestamp()方法支持秒、毫秒、微秒、纳秒级时间戳
  • 新增ToTimestampWithSecond()方法获取秒级时间戳,等价于ToTimestamp()
  • 新增ToTimestampWithMillisecond()方法获取毫秒级时间戳
  • 新增ToTimestampWithMicrosecond()方法获取微秒级时间戳
  • 新增ToTimestampWithNanosecond()方法获取微秒级时间戳

以上所述就是小编给大家介绍的《go-carbon 1.2.3 版本发布了,新增毫秒、微妙、纳秒级时间戳输出》,希望对大家有所帮助,如果大家有任何疑问请给我留言,小编会及时回复大家的。在此也非常感谢大家对 码农网 的支持!

查看所有标签

猜你喜欢:

本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们

Pro CSS and HTML Design Patterns

Pro CSS and HTML Design Patterns

Michael Bowers / Apress / April 23, 2007 / $44.99

Design patterns have been used with great success in software programming. They improve productivity, creativity, and efficiency in web design and development, and they reduce code bloat and complexit......一起来看看 《Pro CSS and HTML Design Patterns》 这本书的介绍吧!

JSON 在线解析
JSON 在线解析

在线 JSON 格式化工具

URL 编码/解码
URL 编码/解码

URL 编码/解码

XML 在线格式化
XML 在线格式化

在线 XML 格式化压缩工具