timeutil

package
v0.0.0-...-4423e67 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PureNumLayout = "20060102150405"
	NormalLayout  = "2006-01-02 15:04:05"
	RFC3339       = time.RFC3339
	RFC822        = time.RFC822
)

时间字符串

Variables

View Source
var (
	LocalTimeZone       = time.Local
	UTCTimeZone, _      = time.LoadLocation("UTC")
	ShanghaiTimeZone, _ = time.LoadLocation("Asia/Shanghai")
)

Functions

func ParseTimeStr

func ParseTimeStr(standard, timeStr string) (time.Time, error)

func ParseTimeStrInLocation

func ParseTimeStrInLocation(layout, timeStr string, localTimeZone *time.Location) (time.Time, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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