You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
dingtalk/vendor/go.dtapp.net/gotime
李光春 d641e26624
- update vendor
2 years ago
..
.drone.yml - update vendor 2 years ago
.gitignore - update vendor 2 years ago
LICENSE - update vendor 2 years ago
README.md - update vendor 2 years ago
compare.go - update vendor 2 years ago
differ.go - update vendor 2 years ago
errors.go - update vendor 2 years ago
gotime.go - update vendor 2 years ago
location.go - update vendor 2 years ago
mongo.go - update vendor 2 years ago
start_end.go - update vendor 2 years ago
today.go - update vendor 2 years ago
tomorrow.go - update vendor 2 years ago
verification.go - update vendor 2 years ago
version.go - update vendor 2 years ago
yesterday.go - update vendor 2 years ago

README.md

Golang Time

📦 Golang 时间

godoc goproxy.cn goreportcard.com deps.dev

安装

go get -v -u go.dtapp.net/gotime

使用

package main

import (
	"go.dtapp.net/gotime"
	"testing"
)

// TestVerification 验证字符串是否为时间
func TestVerification(t *testing.T) {
	t.Log(gotime.Verification("2022-02-05 00:00:00", gotime.DateTimeFormat))
}