clock

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FormatRFC3339Nano added in v0.7.0

func FormatRFC3339Nano(now time.Time) string

func Now

func Now() time.Time

func RFC3339NanoToTime added in v0.11.0

func RFC3339NanoToTime(rfc3339NanoDate string) time.Time

func RFC3339NanoToUnixMilli added in v0.7.0

func RFC3339NanoToUnixMilli(rfc3339NanoDate string) int64

Types

type Clock

type Clock interface {
	Now() time.Time
}

type RealClock

type RealClock struct{}

func (RealClock) Now

func (m RealClock) Now() time.Time

Jump to

Keyboard shortcuts

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