julian

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DaySeconds         = 86400
	UnixEpochJulianDay = 2440587.5
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Time

type Time float64

func FromTime

func FromTime(t time.Time) Time

FromTime converts a time.Time into a Julian day.

func Now

func Now() Time

func (Time) AsTime

func (t Time) AsTime() time.Time

AsTime converts a Julian day into a time.Time.

Jump to

Keyboard shortcuts

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