timestamp

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2021 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

func ToNanos

func ToNanos(timestampInSec int64) int64

ToNanos - converts timestamp in seconds to timestamp in nanos

Types

This section is empty.

Jump to

Keyboard shortcuts

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