【文件属性】:
文件名称:fmtdate:Go时间日期的MS Excel(TM)语法
文件大小:7KB
文件格式:ZIP
更新时间:2021-05-23 13:57:37
golang datetime date excel Go
fmtdate
100%的测试覆盖率(这很容易:-)
fmtdate使用Microsoft Excel(TM)的语法提供日期格式器和解析器。
此外,它提供了日期时间和日期时间的默认转换。
为什么?
Microsoft Excel(TM)具有众所周知的日期格式语法,比go库中的时间包中选择的语法更令人难忘。
用法
package main
import (
"github.com/metakeule/fmtdate"
"fmt"
)
func main () {
date := fmtdate . Format ( "DD.MM.YYYY" , time . Now ())
fmt . Println ( date )
var err
date , err = fmtdate . Parse ( "M/D/YY" , "2/3/07" )
fmt
【文件预览】:
fmtdate-master
----.travis.yml(13B)
----json_test.go(2KB)
----parse_test.go(1KB)
----LICENSE(1KB)
----fmtdate.go(3KB)
----format_test.go(1KB)
----.gitignore(252B)
----json.go(694B)
----README.md(2KB)
----go.mod(36B)