{"id":72976,"library":"rickar-cal-v2","title":"Cal","description":"Package cal provides extensions to the time package for handling holidays, work days (business days), and working hours.","status":"active","version":"2.1.28","language":"go","source_language":null,"source_url":"https://github.com/rickar/cal","tags":["calendar","holidays","business-days","time","date"],"install":[{"cmd":"go get github.com/rickar/cal/v2","lang":"bash","label":"Install github.com/rickar/cal/v2"}],"dependencies":[],"imports":[{"symbol":"cal","correct":"github.com/rickar/cal/v2"}],"quickstart":{"code":"package main\n\nimport (\n\t\"fmt\"\n\t\"time\"\n\t\"github.com/rickar/cal/v2\"\n\t\"github.com/rickar/cal/v2/us\"\n)\n\nfunc main() {\n\tc := cal.NewCalendar()\n\tc.AddHoliday(us.NewYear)\n\tt := time.Date(2024, 1, 1, 0, 0, 0, 0, time.UTC)\n\tfmt.Println(c.IsHoliday(t))\n}","lang":"go","description":"Check if a date is a US holiday"},"warnings":[],"env_vars":null,"search_vec":"'busi':15,23 'business-day':22 'cal':1,3 'calendar':20 'date':26 'day':14,16,24 'extens':5 'handl':11 'holiday':12,21 'hour':19 'packag':2,9 'provid':4 'time':8,25 'work':13,18","created_at":"2026-06-17T18:45:55.887915+00:00","updated_at":"2026-06-17T18:45:55.887915+00:00","problems":[],"ecosystem":"go","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/rickar/cal","github":"https://github.com/rickar/cal","docs":"https://pkg.go.dev/github.com/rickar/cal/v2#section-documentation","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["utility"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-17","next_check":"2026-12-14","install_tag":null}}