holidays

package module
v0.0.0-...-80da477 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2017 License: MIT Imports: 2 Imported by: 0

README

holidays

Golang package to provide functions for calculating bank holidays in England & Wales. Current tests only cover 2010-2020.

Installation

go get github.com/aca02djr/holidays

Docs

http://godoc.org/github.com/aca02djr/holidays

Documentation

Overview

Package holidays provides functions for calculating bank holidays in England & Wales for a given year.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Check

func Check(date time.Time) bool

Check returns whether or not the provided time.Time is bank holiday. It ignores the time portion, checking only the date.

func ForYear

func ForYear(year int) []time.Time

ForYear returns a time.Time slice representing the bank holidays for the provided year.

Types

This section is empty.

Jump to

Keyboard shortcuts

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