_time

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Year                = "2006"
	Month               = "01"
	Day                 = "02"
	Hour                = "15"
	Minute              = "04"
	Second              = "05"
	Millisecond         = "000"
	FormatDate          = "2006-01-02"
	FormatDatetime      = "2006-01-02 15:04:05"
	FormatDatetimeMilli = "2006-01-02 15:04:05.000"
	FormatYmdHis        = "20060102150405"
	FormatYmd           = "20060102"
	FormatYm            = "200601"
)

Variables

This section is empty.

Functions

func Format

func Format(t time.Time, format string) string

func Get added in v0.2.5

func Get() time.Time

func GetByDate added in v0.2.5

func GetByDate(date string) time.Time

func GetByDatetime added in v0.2.5

func GetByDatetime(datetime string) time.Time

func GetByDatetimeMilli added in v0.2.5

func GetByDatetimeMilli(datetimeMilli string) time.Time

func GetByFormatAndString added in v0.2.5

func GetByFormatAndString(f string, s string) time.Time

func GetByUnix added in v0.2.5

func GetByUnix(unix int64) time.Time

func GetByUnixMicro added in v0.2.5

func GetByUnixMicro(unixMicro int64) time.Time

func GetByUnixMilli added in v0.2.5

func GetByUnixMilli(unixMilli int64) time.Time

Types

This section is empty.

Jump to

Keyboard shortcuts

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