Skip to content
/ greg Public

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

License

Notifications You must be signed in to change notification settings

hebcal/greg

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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