jd

package module
v0.0.0-...-0dbd961 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2021 License: MIT Imports: 5 Imported by: 0

README

go-jd

救命库

Documentation

Overview

http://aa.usno.navy.mil/faq/docs/JD_Formula.php

Index

Constants

View Source
const VERSION = "0.0.1"

Variables

This section is empty.

Functions

func J2YMD

func J2YMD(d int) (int, int, int)

y, m, d := jd.J2YMD(2453738); y==2006 && m==1 && d==2 //=> true

func Number

func Number(t time.Time) int

number = jd.Number(time)

func ToDate

func ToDate(number int) string

"2006-01-02" == jd.ToDate(2453738) //=> true

func ToNumber

func ToNumber(date string) (int, error)

number, err = jd.ToNumber("2006-01-02"); number == 2453738 //=> true

func YMD2J

func YMD2J(i, j, k int) int

jd.YMD2J(2006, 1, 2) == 2453738 //=> true

Types

This section is empty.

Jump to

Keyboard shortcuts

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