]> gerrit.simantics Code Review - simantics/district.git/blob - org.simantics.maps.server/node/node-v4.8.0-win-x64/node_modules/npm/node_modules/node-gyp/node_modules/path-array/node_modules/array-index/node_modules/es6-symbol/node_modules/es5-ext/date/#/days-in-month.js
Adding integrated tile server
[simantics/district.git] / org.simantics.maps.server / node / node-v4.8.0-win-x64 / node_modules / npm / node_modules / node-gyp / node_modules / path-array / node_modules / array-index / node_modules / es6-symbol / node_modules / es5-ext / date / # / days-in-month.js
1 'use strict';
2
3 var getMonth = Date.prototype.getMonth;
4
5 module.exports = function () {
6         switch (getMonth.call(this)) {
7         case 1:
8                 return this.getFullYear() % 4 ? 28 : 29;
9         case 3:
10         case 5:
11         case 8:
12         case 10:
13                 return 30;
14         default:
15                 return 31;
16         }
17 };