vtime

package
v0.0.0-...-0b57644 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	GO_TIME_SHORT_FORM     = "2006-01-02"
	GO_TIME_LONG_FORM      = "2006-01-02 15:04:05"
	GO_TIME_UTC_SHORT_FORM = "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 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