MCPcopy Create free account
hub / github.com/RubyLouvre/anu / getDay

Function getDay

test/json3.js:331–333  ·  view source on GitHub ↗
(year, month)

Source from the content-addressed store, hash-verified

329 // Internal: Calculates the number of days between the Unix epoch and the
330 // first day of the given month.
331 var getDay = function (year, month) {
332 return Months[month] + 365 * (year - 1970) + floor((year - 1969 + (month = +(month > 1))) / 4) - floor((year - 1901 + month) / 100) + floor((year - 1601 + month) / 400);
333 };
334 getData = function (value) {
335 // Manually compute the year, month, date, hours, minutes,
336 // seconds, and milliseconds if the `getUTC*` methods are

Callers 1

serializeDateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected