Skip to content

hebcal/greg

Repository files navigation

greg

Build Status Go Report Card GoDoc

Hebcal's greg package converts between Gregorian/Julian dates and R.D. (Rata Die) day numbers. Dates before September 14, 1752 are interpreted using the Julian calendar.

Example

package main

import (
	"fmt"
	"time"

	"github.com/hebcal/greg"
)

func main() {
	rataDie := greg.ToRD(1995, time.December, 17)
	fmt.Println(rataDie)
	// Output: 728644
}

About

converts between Gregorian dates and R.D. (Rata Die) day numbers

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages