projects
/
platform
/
framework
/
web
/
crosswalk-tizen.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
e780efe3c7f99e41a5855cffe2363709b1123958
[platform/framework/web/crosswalk-tizen.git]
/
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
};