julian

package
v1.8.20 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package julian provided julian time conversion functions.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DayToTime

func DayToTime(jd int) time.Time

DayToTime returns the correcponding UTC date for a Julian Day Number. The algorithm is taken from https://en.wikipedia.org/wiki/Julian_day.

func TimeToDay

func TimeToDay(t time.Time) int

TimeToDay returns the Julian Date Number of time's date components. The algorithm is taken from https://en.wikipedia.org/wiki/Julian_day.

Types

This section is empty.

Jump to

Keyboard shortcuts

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