timeutil

package
v5.10.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2019 License: MIT, MIT, MIT, + 1 more Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertToUTC

func ConvertToUTC(t *types.TimeWindowTimeRange) error

ConvertToUTC takes a TimeWindowRange and converts both the begin time and end time of the window to UTC

func ConvertToUnix

func ConvertToUnix(value string) (int64, error)

ConvertToUnix takes a full date and converts it to a UNIX timestamp

func HumanTimestamp

func HumanTimestamp(timestamp int64) string

HumanTimestamp takes a timestamp and returns a readable date using the format string "2006-01-02 15:04:05.999999999 -0700 MST". If the timestamp equals 0, "N/A" will be returned instead of the epoch date

Types

This section is empty.

Jump to

Keyboard shortcuts

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