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 (10 loc) 294 B
define(['./isLeapYear'], function (isLeapYear) { /** * return the amount of days in the year following the gregorian calendar * and leap years */ function totalDaysInYear(fullYear){ return isLeapYear(fullYear)? 366 : 365; } return totalDaysInYear; });