timex

package
v1.3.76 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FormatDate

func FormatDate(dateStr string) (time.Time, error)

时间格式变化 20060102 -> 2006-01-02

func GbTimeToUnixTime

func GbTimeToUnixTime(timeStr string) int64

func GbTimeToUnixTime2

func GbTimeToUnixTime2(timeStr string) int64

func NowInHHMMSS

func NowInHHMMSS() string

func NowInISO8601 added in v1.3.71

func NowInISO8601() string

func NowInISO8601Var added in v1.3.71

func NowInISO8601Var() string

func NowInYYMMDD

func NowInYYMMDD() string

func NowInYYMMDDHHMMSS added in v1.3.71

func NowInYYMMDDHHMMSS() string

func UnixTimeToGbLocalTime

func UnixTimeToGbLocalTime(sec int64) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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