gregorian

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2018 License: BSD-3-Clause Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DaysIn

func DaysIn(year int, month time.Month) int

DaysIn gives the number of days in a given month, according to the Gregorian calendar.

func DaysInYear

func DaysInYear(year int) int

DaysInYear gives the number of days in a given year, according to the Gregorian calendar.

func IsLeap

func IsLeap(year int) bool

IsLeap simply tests whether a given year is a leap year, using the Gregorian calendar algorithm.

Types

This section is empty.

Jump to

Keyboard shortcuts

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