time

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: May 25, 2018 License: GPL-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MarshalTime

func MarshalTime(t time.Time) ([]byte, error)

Converts Time t into a Unix timestamp with nanosecond precision in the format of: s.nnnnnnnnn

func UnixTimeToGoTime

func UnixTimeToGoTime(data []byte) (time.Time, error)

func UnmarshalTime

func UnmarshalTime(data []byte) (time.Time, error)

Types

type Times

type Times struct {
	Earliest time.Time
	Latest   time.Time
}

func (*Times) Union

func (tm *Times) Union(add_period Times)

Jump to

Keyboard shortcuts

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