Registry / utility / rickar-cal

rickar-cal

JSON →
library2.1.28+incompatiblegogounverified

Extends the Go time package with functions for handling holidays and business days.

go get github.com/rickar/cal
INSTALL
IMPORT
SIG · RICKAR-CAL
R
rickar-cal
utilitygov2.1.28+incompatible
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

Calculates a date 5 workdays from today, excluding US New Year.

package main import ( "fmt" "time" "github.com/rickar/cal" ) func main() { c := cal.NewCalendar() c.AddHoliday(cal.USNewYear) workday := c.WorkdaysFrom(time.Now(), 5) fmt.Println("5 workdays from now:", workday) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
2.1.28+incompatiblelatest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

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