timestamp

package
v0.4.3 Latest Latest
Warning

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

Go to latest
Published: May 23, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CompareAsc added in v0.4.0

func CompareAsc(a int64, b int64) bool

CompareAsc compares two timestamps and returns true if a is less than or equal to b

func CompareClosest added in v0.4.0

func CompareClosest(closest int64) func(int64, int64) bool

CompareClosest compares two timestamps and returns true if ts1 is closer to closest than ts2

func CompareDesc added in v0.4.0

func CompareDesc(a int64, b int64) bool

CompareDesc compares two timestamps and returns true if a is greater than b

func Parse

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

func TimeTo14

func TimeTo14(t time.Time) string

func To14

func To14(s string) (string, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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