gps

package
v2.5.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2019 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Time

type Time time.Time

Time represents a GPS time wrapper.

func NewFromTimeSinceGPSEpoch

func NewFromTimeSinceGPSEpoch(sinceEpoch time.Duration) Time

NewFromTimeSinceGPSEpoch returns a new Time given a time since GPS epoch and will apply the leap second correction.

func (Time) String

func (t Time) String() string

String implements the Stringer interface.

func (Time) TimeSinceGPSEpoch

func (t Time) TimeSinceGPSEpoch() time.Duration

TimeSinceGPSEpoch returns the time duration since GPS epoch, corrected with the leap seconds.

Jump to

Keyboard shortcuts

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