timetool

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2023 License: GPL-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func East8Time

func East8Time() time.Time

East8Time 返回东八区时间

func East8TimeDefaultFormat

func East8TimeDefaultFormat() string

East8TimeDefaultFormat 东八区时间,默认格式化:YYYY-MM-DD HH:MM:SS

func RandomTime

func RandomTime(minDuration, maxDuration time.Duration) time.Duration

RandomTime Between min Duration and max Duration, random values are taken

func SleepWithRandom

func SleepWithRandom(minDuration, maxDuration time.Duration)

SleepWithRandom sleeps for a duration between minDuration and maxDuration, inclusive duration is randomly selected between minDuration and maxDuration

Types

This section is empty.

Jump to

Keyboard shortcuts

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