Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

norwegian_holidays

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

norwegian_holidays

  • 0.0.4
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

Norwegian Holidays

A Norwegian holiday calendar. Answers the age-old question: When is mothersday this year?

Implemented holidays

Mothersday: Second Sunday in February. Fathersday: Second Sunday in November. Valentines Day: February 14. Christmas: December 24th (Norwegians only care about Christmas Eve, apparently).

Usage

NorwegianHolidays.christmas(2010)
=> December 24, 2010

NorwegianHolidays.mothersday(2011)
=> February 13, 2011

NorwegianHolidays.next_mothersday( Date.new(2011, 2, 7) )
=> February 13, 2011

NorwegianHolidays.next_mothersday( Date.new(2011, 3, 14) )
=> February 12, 2012

Next (if coming up) or last holiday

There is a need to return the next holiday if it is coming up within a certain timeframe, otherwise return last year's holiday.

The name for this has not been suitably determined as of yet.

fathersday_for_season(2.months)

FAQs

Package last updated on 15 May 2012

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc