_time

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2025 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"
	FormatYmd           = "20060102"
	FormatYm            = "200601"
)

Variables

This section is empty.

Functions

func Format

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

func Get

func Get() time.Time

func GetByDate

func GetByDate(date string) time.Time

func GetByDatetime

func GetByDatetime(datetime string) time.Time

func GetByDatetimeMilli

func GetByDatetimeMilli(datetimeMilli string) time.Time

func GetByFormatAndString

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

func GetByUnix

func GetByUnix(unix int64) time.Time

func GetByUnixMicro

func GetByUnixMicro(unixMicro int64) time.Time

func GetByUnixMilli

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