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.
gotrace_id/vendor/go.dtapp.net/gotime
dtapps 17bd9b5bd9
- add vendor
2 months ago
..
.drone.yml - add vendor 2 months ago
.gitignore - add vendor 2 months ago
LICENSE - add vendor 2 months ago
README.md - add vendor 2 months ago
compare.go - add vendor 2 months ago
differ.go - add vendor 2 months ago
errors.go - add vendor 2 months ago
format.go - add vendor 2 months ago
gotime.go - add vendor 2 months ago
location.go - add vendor 2 months ago
mongo.go - add vendor 2 months ago
start_end.go - add vendor 2 months ago
today.go - add vendor 2 months ago
tomorrow.go - add vendor 2 months ago
verification.go - add vendor 2 months ago
version.go - add vendor 2 months ago
yesterday.go - add vendor 2 months ago

README.md

Golang

📦 Golang 时间

godoc goproxy.cn goreportcard.com deps.dev

安装

go get -v -u go.dtapp.net/gotime@v1.0.8

使用

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))
}