UNPKG

tastypie

Version:

Tastypie is a webservice API framework for Node.js based on Django's Tastypie Framework. It provides a convenient, yet powerful and highly customizable, abstraction for creating REST-style interfaces

14 lines (9 loc) 294 B
var isLeapYear = require('./isLeapYear'); /** * return the amount of days in the year following the gregorian calendar * and leap years */ function totalDaysInYear(fullYear){ return isLeapYear(fullYear)? 366 : 365; } module.exports = totalDaysInYear;