go-datebin

module
v1.0.1002 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 23, 2022 License: Apache-2.0

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

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL