vtime

package
v0.0.0-...-1671bb8 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2021 License: Apache-2.0 Imports: 4 Imported by: 1

Documentation

Index

Constants

View Source
const (
	FormatDatetime = "2006-01-02 15:04:05"
	FormatDay      = "2006-01-02"
	FormatTime     = "15:04:05"
	FormatUTC1     = "2006-01-02T15:04:05"
)

Variables

This section is empty.

Functions

func Delay

func Delay(ts time.Time) string

func FormatUnix

func FormatUnix(unixTime interface{}, format string) string

格式化 unix 时间戳

func Sleep

func Sleep(max int, seed int)

func SleepHour

func SleepHour()

func SleepRand

func SleepRand(max int, seed int64)

func SleepRandMillisecond

func SleepRandMillisecond(max int)

func SleepSecond

func SleepSecond(sleep int)

func StrToTimeLong

func StrToTimeLong(s string) (tDst time.Time)

func StrToTimeShort

func StrToTimeShort(s string) (tDst time.Time)

func UTCtoLOCAL

func UTCtoLOCAL(utc string) (local time.Time, err error)

func UTCtoLOCALWithoutSec

func UTCtoLOCALWithoutSec(utc string) (local time.Time, err error)

func WeekdayCN

func WeekdayCN(s string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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