time

package
v1.1.4 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCurrentTime

func GetCurrentTime() string

GetCurrentTime 获取现在时间

func GetDayBeginTime

func GetDayBeginTime(curTime time.Time) time.Time

GetDayBeginTime 获取一天开始的时间

func GetDayEndTime

func GetDayEndTime(curTime time.Time) time.Time

GetDayEndTime 获取一天结束的时间

func GetTodayZeroTimestamp

func GetTodayZeroTimestamp() int64

GetTodayZeroTimestamp 获取今天零时时间戳

func Sleep

func Sleep(d time.Duration)

Sleep time

func Timestamp2Date

func Timestamp2Date(timestamp int64) string

Timestamp2Date 时间戳转成日期

Types

This section is empty.

Jump to

Keyboard shortcuts

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