MCPcopy Create free account
hub / github.com/CloudBoost/cloudboost / getDay

Function getDay

sdk/src/CloudSocketClientLib.js:7093–7095  ·  view source on GitHub ↗
(year, month)

Source from the content-addressed store, hash-verified

7091 // Internal: Calculates the number of days between the Unix epoch and the
7092 // first day of the given month.
7093 var getDay = function(year, month) {
7094 return Months[month] + 365 * (year - 1970) + floor((year - 1969 + (month = +(month > 1))) / 4) - floor((year - 1901 + month) / 100) + floor((year - 1601 + month) / 400);
7095 };
7096 }
7097
7098 // 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