timekit

package
v0.0.0-...-1f13888 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2019 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Duration

func Duration(s string) time.Duration

func EqualString

func EqualString(t1 time.Time, format, s string) bool

EqualString return whether time is same with string

func EqualUTC

func EqualUTC(t1 time.Time, s string) bool

EqualUTC return whether time is same with UTC string

func Freeze

func Freeze(t time.Time)

func FreezeUTC

func FreezeUTC(s string) (err error)

func Parse

func Parse(format, s string) time.Time

Parse is errorless time.Parse()

func Sleep

func Sleep(durationFormat string)

Sleep pause current goroutine according duration format

func UTC

func UTC(s string) time.Time

UTC is errorless time.Parse() using RFC3339

func Unfreeze

func Unfreeze()

Types

This section is empty.

Jump to

Keyboard shortcuts

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