MCPcopy Index your code
hub / github.com/GoogleTrends/data / renderWeek

Function renderWeek

Pikaday/pikaday.js:292–297  ·  view source on GitHub ↗
(d, m, y)

Source from the content-addressed store, hash-verified

290 },
291
292 renderWeek = function (d, m, y) {
293 // Lifted from http://javascript.about.com/library/blweekyear.htm, lightly modified.
294 var onejan = new Date(y, 0, 1),
295 weekNum = Math.ceil((((new Date(y, m, d) - onejan) / 86400000) + onejan.getDay()+1)/7);
296 return '<td class="pika-week">' + weekNum + '</td>';
297 },
298
299 renderRow = function(days, isRTL)
300 {

Callers 1

pikaday.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…