Skip to content
This repository has been archived by the owner on Nov 25, 2020. It is now read-only.

telemark/get-skole-aar

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status Coverage Status Code Climate js-standard-style

Repository moved to: vtfk/get-skole-aar


get-skole-aar

Returns school year

Installation

From npm

$ npm i get-skole-aar

From GitHub

$ git clone git@github.com:telemark/get-skole-aar.git

Usage

const getSchoolYear = require('get-school-year')

console.log(getSchoolYear('2016-02-01')) //=> 2015/2016

console.log(getSchoolYear('2016-08-15')) //=> 2016/2017

console.log(getSchoolYear('2015-04-01')) //=> 2014/2015

License

MIT