Skip to content

Latest commit

 

History

History
33 lines (24 loc) · 1.35 KB

README.md

File metadata and controls

33 lines (24 loc) · 1.35 KB

norwegian-holidays

A simple repo that finds the norwegian holidays for a given year

Build and test Validate Gradle Wrapper GitHub Release

Technologies used

  • Kotlin
  • Gradle
  • JDK 21

Build and run tests

To build locally and run the integration tests you can simply run ./gradlew clean build or on windows gradlew.bat clean build

Upgrading the gradle wrapper

Find the newest version of gradle here: https://gradle.org/releases/ Then run this command:

./gradlew wrapper --gradle-version $gradleVersjon

Usage

val year = 2022
val easterDay = getNorwegianHolidays(year).find { it.name == "1. påskedag" }?.date

println("Easter day for 2022 is: $easterDay")

Contact

Questions and/or feature requests? Please create an issue.