Registry / utility / rickar-cal-v2

rickar-cal-v2

JSON →
library2.1.28gogounverified

Package cal provides extensions to the time package for handling holidays, work days (business days), and working hours.

go get github.com/rickar/cal/v2
INSTALL
IMPORT
SIG · RICKAR-CAL-V2
R
rickar-cal-v2
utilitygov2.1.28
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

cal
✓ github.com/rickar/cal/v2

Check if a date is a US holiday

package main import ( "fmt" "time" "github.com/rickar/cal/v2" "github.com/rickar/cal/v2/us" ) func main() { c := cal.NewCalendar() c.AddHoliday(us.NewYear) t := time.Date(2024, 1, 1, 0, 0, 0, 0, time.UTC) fmt.Println(c.IsHoliday(t)) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
2.1.28latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
7 hits · last 30 days
node
6
Amazon
1
Resources
rickar-cal-v2 — go get rickar-cal-v2 · libregistry