MCPcopy Create free account
hub / github.com/CreateJS/PreloadJS / getDay

Function getDay

lib/preloadjs-NEXT.js:1213–1215  ·  view source on GitHub ↗
(year, month)

Source from the content-addressed store, hash-verified

1211 // Internal: Calculates the number of days between the Unix epoch and the
1212 // first day of the given month.
1213 var getDay = function (year, month) {
1214 return Months[month] + 365 * (year - 1970) + floor((year - 1969 + (month = +(month > 1))) / 4) - floor((year - 1901 + month) / 100) + floor((year - 1601 + month) / 400);
1215 };
1216 }
1217
1218 // Internal: Determines if a property is a direct property of the given

Callers 1

serializeFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected