gps

package
v0.0.0-...-559f553 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2023 License: MIT Imports: 2 Imported by: 2

Documentation

Overview

Package gps provides functions to handle Time <> GPS Epoch time conversion.

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 NewTimeFromTimeSinceGPSEpoch

func NewTimeFromTimeSinceGPSEpoch(sinceEpoch time.Duration) Time

NewTimeFromTimeSinceGPSEpoch 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