time

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2024 License: MIT Imports: 3 Imported by: 1

Documentation

Index

Constants

View Source
const (
	FormatDashDatetime = "2006-01-02 15:04:05"
	FormatDashDate     = "2006-01-02"
	FormatSeamlessDate = "20060102"

	JANUARY   = Month("1")
	FEBRUARY  = Month("2")
	MARCH     = Month("3")
	APRIL     = Month("4")
	MAY       = Month("5")
	JUNE      = Month("6")
	JULY      = Month("7")
	AUGUST    = Month("8")
	SEPTEMBER = Month("9")
	OCTOBER   = Month("10")
	NOVEMBER  = Month("11")
	DECEMBER  = Month("12")
)

Variables

This section is empty.

Functions

func GetCurDayPassMS

func GetCurDayPassMS() int64

func GetCurDayPassS

func GetCurDayPassS() int

func GetDateRange added in v0.0.4

func GetDateRange(startDate string, endDate string) (dateRange []interface{})

TODO: need to support in different year

func GetFormatDashDate added in v0.0.4

func GetFormatDashDate(t time.Time) string

func GetFormatSeamlessDate added in v0.0.4

func GetFormatSeamlessDate() string

func GetNumsOfDayInMonth added in v0.0.4

func GetNumsOfDayInMonth(month Month) int

func GetTSByFormatDate added in v0.0.4

func GetTSByFormatDate(formatDate string) int64

func IntervalDay

func IntervalDay(bt int64, lt int64) int

* IntervalDay * @param int64 bt: big timestamp * @param int64 lt: little timestamp

Types

type Month added in v0.0.4

type Month string

Jump to

Keyboard shortcuts

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