wtime

package
v1.1.3 Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Interval int64 = 0
	Location       = time.FixedZone("CST", 8*60*60) //东八区
)

Functions

func EndOfDay

func EndOfDay(in int64) time.Time

func GetMSec

func GetMSec() int64

func GetNano

func GetNano() int64

func GetNow

func GetNow() int64

func GetNowTime

func GetNowTime() time.Time

func GetSinceDayFromTimeStr

func GetSinceDayFromTimeStr(in uint64) int64

func GetTime

func GetTime(tm int64) time.Time

func GetWeek

func GetWeek() uint32

返回当前时间是当年的第几周

func IsSameDay

func IsSameDay(a, b int64) bool

func IsSameWeek

func IsSameWeek(a, b int64) bool

func ParseTimeToUnixTime

func ParseTimeToUnixTime(in string) uint64

* @brief UTC + 时区

func SetLocation

func SetLocation(hour int)

func SetTimeInterval

func SetTimeInterval(in int64)

func StartOfDay

func StartOfDay(in int64) time.Time

func WeekEnd

func WeekEnd(in int64) time.Time

func WeekStart

func WeekStart(in 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