easter

package
v3.0.1 Latest Latest
Warning

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

Go to latest
Published: May 10, 2018 License: MIT Imports: 0 Imported by: 0

Documentation

Overview

Easter: Chapter 8, Date of Easter

Index

Examples

Constants

This section is empty.

Variables

This section is empty.

Functions

func Gregorian

func Gregorian(y int) (m, d int)

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

func Julian(y int) (m, d int)

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.

Jump to

Keyboard shortcuts

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