MCPcopy Create free account
hub / github.com/PrairieLearn/PrairieLearn / getDay

Function getDay

public/javascripts/socket.io.js:2168–2170  ·  view source on GitHub ↗
(year, month)

Source from the content-addressed store, hash-verified

2166 // Internal: Calculates the number of days between the Unix epoch and the
2167 // first day of the given month.
2168 var getDay = function (year, month) {
2169 return Months[month] + 365 * (year - 1970) + floor((year - 1969 + (month = +(month > 1))) / 4) - floor((year - 1901 + month) / 100) + floor((year - 1601 + month) / 400);
2170 };
2171 }
2172
2173 // Internal: Determines if a property is a direct property of the given

Callers 1

serializeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected