timestamp

package
v0.2.0-alpha-1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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