module
Version:
v1.0.1002
Opens a new window with list of versions in this module.
Published: Apr 23, 2022
License: Apache-2.0
Opens a new window with license information.
README
¶
时间使用
项目介绍
下载安装
go get -u github.com/deatil/go-datebin
使用
package main
import (
"fmt"
"github.com/deatil/go-datebin/datebin"
)
func main() {
// 时间
date := datebin.
Now().
ToDatetimeString()
date2 := datebin.
Parse("2032-03-15 12:06:17").
ToDatetimeString()
fmt.Println("当前的时间:", date)
fmt.Println("解析的时间:", date2)
}
开源协议
- 本软件包遵循
Apache2
开源协议发布,在保留本软件包版权的情况下提供个人及商业免费使用。
版权
Directories
¶
Click to show internal directories.
Click to hide internal directories.