date

package
v0.0.0-...-c68f7f2 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2019 License: MIT Imports: 2 Imported by: 1

Documentation

Index

Constants

View Source
const DAY_FORMAT = "20060102"
View Source
const DAY_MILLISECONDS = 24 * 60 * 60 * 1000
View Source
const SECOND_FORMAT = "20060102 15:04:05"

Variables

This section is empty.

Functions

func DayString2Timestamp

func DayString2Timestamp(date string) (uint64, error)

func GetDateDay

func GetDateDay(date uint64) int

func GetDateMonth

func GetDateMonth(date uint64) int

func GetDateQuarter

func GetDateQuarter(date uint64) int

func GetDateWeek

func GetDateWeek(date uint64) int

func GetDateWeekDay

func GetDateWeekDay(date uint64) int

func GetDateYear

func GetDateYear(date uint64) int

func GetDayTimestamp

func GetDayTimestamp(date uint64) uint64

func GetNowString

func GetNowString() string

func GetTodayInt

func GetTodayInt() int

func GetTodayString

func GetTodayString() string

func SecondString2Timestamp

func SecondString2Timestamp(date string) (uint64, error)

func Tick

func Tick() int64

func Timestamp2DayString

func Timestamp2DayString(ts uint64) string

func Timestamp2SecondString

func Timestamp2SecondString(ts uint64) string

func ToDayInt

func ToDayInt(t time.Time) int

func ToDayString

func ToDayString(t time.Time) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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