timestamp

package
v1.2.1-alpha-1 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromNanos added in v1.4.0

func FromNanos(nanos int64) time.Time

func FromString

func FromString(timestamp string) (int64, error)

FromString parses a string in the format `{seconds}.{nanos}` into int64 timestamp

func String

func String(timestamp int64) string

String parses int64 timestamp into `{seconds}.{nanos}` string

func ToHumanReadable

func ToHumanReadable(timestampNanos int64) string

ToHumanReadable converts the timestamp into human readable string

Types

This section is empty.

Jump to

Keyboard shortcuts

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