chrono

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

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

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

Documentation

Index

Constants

View Source
const (
	RFC3339NanoUTC  = "2006-01-02T15:04:05.999999999Z"
	RFC3339MicroUTC = "2006-01-02T15:04:05.999999Z"
)

Variables

This section is empty.

Functions

func IsoNano

func IsoNano(t time.Time) string

func NanoToIso

func NanoToIso(nano int64) string

func Now

func Now(ctx context.Context) time.Time

func NowMillisecond

func NowMillisecond(ctx context.Context) int64

func NowNano

func NowNano(ctx context.Context) int64

func NowString

func NowString(ctx context.Context) string

func ParseIsoNano

func ParseIsoNano(iso string) (time.Time, error)

func ParseIsoToNano

func ParseIsoToNano(iso string) (int64, error)

func Sleep

func Sleep(ctx context.Context, duration time.Duration) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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