Sha256: 027a3933f8ea4dcd97da57140c83f35efa9c78366b2b4115d68705c732865336
Contents?: true
Size: 325 Bytes
Versions: 69
Compression:
Stored size: 325 Bytes
Contents
define(['../lang/isDate'], function (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; } return dayOfTheYear; });
Version data entries
69 entries across 69 versions & 2 rubygems