timekit

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2019 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package timekit provide error safe function for time function

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Duration

func Duration(s string) time.Duration

Duration is error safe function for time.Parse()

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 Parse

func Parse(format, s string) time.Time

Parse is error safe function 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 error safe function time.Parse() using RFC3339

Types

This section is empty.

Jump to

Keyboard shortcuts

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