Skip to content

Latest commit

 

History

History
28 lines (21 loc) · 722 Bytes

README.md

File metadata and controls

28 lines (21 loc) · 722 Bytes

greg

Build Status Go Report Card GoDoc

Hebcal's greg package converts between Gregorian dates and R.D. (Rata Die) day numbers.

Example

package main

import (
	"fmt"
	"time"

	"github.com/hebcal/greg"
)

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