datetime

package
v0.3.11 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2024 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Minute = 60
	Hour   = 60 * Minute
	Day    = 24 * Hour
	Week   = 7 * Day
	Month  = 30 * Day
	Year   = 12 * Month
)

Variables

This section is empty.

Functions

func NowFormat

func NowFormat(fmtStr string) string

func NowUnix

func NowUnix() int64

func ToUnix

func ToUnix(fmt, value string) int64

func ToUnixLocation

func ToUnixLocation(fmt, value, localtion string) int64

func Unix

func Unix(datetime string) int64

func UnixFormat

func UnixFormat(sec int64, fmtStr string) string

func UnixToTime

func UnixToTime(unix 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