5 ms·
Easier to write (new Date() - new Date(d.getUTCFullYear(), d.getUTCMonth(), d.getUTCDate())) / (24 * 60 * 60) and not have to worry about timezones :)
by nightpool 4y ago
Easier to write (new Date() - new Date(d.getUTCFullYear(), d.getUTCMonth(), d.getUTCDate())) / (24 * 60 * 60) and not have to worry about timezones :)
- emacsen 4y agoI suppose also means this is some kind of Free Decimal Time, vs Swatch Time, which has the hint of proprietary. Thx.