Sha256: 024187dc30d3adc0d57ea4e7370541aa7883a1b78ad078ddfccbc5d02f469868
Contents?: true
Size: 325 Bytes
Versions: 69
Compression:
Stored size: 325 Bytes
Contents
var isDate = require('../lang/isDate'); /** * return the day of the year (1..366) */ function dayOfTheYear(date){ return (Date.UTC(date.getFullYear(), date.getMonth(), date.getDate()) - Date.UTC(date.getFullYear(), 0, 1)) / 86400000 + 1; } module.exports = dayOfTheYear;
Version data entries
69 entries across 69 versions & 2 rubygems