timer

package
v1.3.2 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultFormatLayout       = "2006-01-02 15:04:05"
	DefaultFormat2MilliLayout = "2006-01-02 15:04:05.00"
)

Variables

This section is empty.

Functions

func Format

func Format(t time.Time) string

func Format2Milli

func Format2Milli(t time.Time) string

func IsStrTime

func IsStrTime(v interface{}) bool

func IsTime

func IsTime(v interface{}) bool

func IsUnixTime

func IsUnixTime(v interface{}) bool

func Now

func Now() string

func Parse

func Parse(s string) (time.Time, error)

func ParseMilli

func ParseMilli(s string) (time.Time, error)

func Unix2Time

func Unix2Time(unix int64) 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