Documentation ¶
Overview ¶
Easter: Chapter 8, Date of Easter
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Gregorian ¶
Gregorian returns month and day of Easter in the Gregorian calendar.
Example ¶
package main import ( "fmt" "time" "github.com/soniakeys/meeus/v3/easter" ) func main() { // Example values from p. 68. for _, y := range []int{1991, 1992, 1993, 1954, 2000, 1818} { m, d := easter.Gregorian(y) fmt.Println(y, ":", time.Month(m), d) } }
Output: 1991 : March 31 1992 : April 19 1993 : April 11 1954 : April 18 2000 : April 23 1818 : March 22
func Julian ¶
Julian returns month and day of Easter in the Julian calendar.
Example ¶
package main import ( "fmt" "time" "github.com/soniakeys/meeus/v3/easter" ) func main() { // Example value from p. 69. y := 1243 m, d := easter.Julian(y) fmt.Println(y, ":", time.Month(m), d) }
Output: 1243 : April 12
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.