wtime

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2020 License: Apache-2.0 Imports: 2 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 added in v1.0.4

func EndOfDay(in int64, hour int) 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 added in v1.0.4

func GetTime(tm int64) time.Time

func GetWeek

func GetWeek() uint32

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

func IsSameDay added in v1.0.4

func IsSameDay(a, b int64) bool

func IsSameWeek added in v1.0.4

func IsSameWeek(a, b int64) bool

func ParseTimeToUnixTime

func ParseTimeToUnixTime(in string) uint64

* @brief UTC + 时区

func SetLocation added in v1.0.4

func SetLocation(hour int)

func SetTimeInterval

func SetTimeInterval(in int64)

func StartOfDay added in v1.0.4

func StartOfDay(in int64, hour int) time.Time

func WeekEnd added in v1.0.4

func WeekEnd(in int64, start time.Weekday) time.Time

func WeekStart added in v1.0.4

func WeekStart(in int64, start time.Weekday) 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