time

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2019 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CopyPtr

func CopyPtr(t *time.Time) *time.Time

func Difference

func Difference(t1 *time.Time, t2 *time.Time) string

func LocalHourNow

func LocalHourNow() string

func LocalTimestamp

func LocalTimestamp(t *time.Time) string

func LocalTimestampHuman

func LocalTimestampHuman(t *time.Time) string

func MicrosecsStr

func MicrosecsStr(t time.Time) string

func MillisToTime added in v0.8.0

func MillisToTime(epochMillis int64) time.Time

func MillisecsStr

func MillisecsStr(t time.Time) string

func OlderThanSeconds

func OlderThanSeconds(t time.Time, secs float64) bool

func PtrsEqual

func PtrsEqual(t1 *time.Time, t2 *time.Time) bool

func Since

func Since(t *time.Time) string

func Timestamp

func Timestamp(t time.Time) string

func ToMillis added in v0.8.0

func ToMillis(t time.Time) int64

Types

type Timer added in v0.12.0

type Timer struct {
	// contains filtered or unexported fields
}

func StartTimer added in v0.12.0

func StartTimer(name string) Timer

func (Timer) PrintTimeElapsed added in v0.12.0

func (t Timer) PrintTimeElapsed()

Jump to

Keyboard shortcuts

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