calendar

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2023 License: BSD-3-Clause, MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DaysInMonth

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

func IsLeap

func IsLeap(year int) bool

IsLeap return true for leap years, false for non-leap years.

Adapted from https://github.com/python/cpython/blob/main/Lib/calendar.py

func LeapDays

func LeapDays(year1, year2 int) int

LeapDays return number of leap years in range [y1, y2). Assume y1 <= y2.

Adapted from https://github.com/python/cpython/blob/main/Lib/calendar.py

Types

This section is empty.

Jump to

Keyboard shortcuts

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