@bodar/totallylazy
Advanced tools
Comparing version
@@ -160,3 +160,3 @@ "use strict"; | ||
create(year, month, day) { | ||
if (year && year >= 0 && year < 10) | ||
if (year && year < 10) | ||
throw new Error('Illegal year'); | ||
@@ -181,5 +181,4 @@ if (year && year >= 100 && year < 1000) | ||
calculateYear(year) { | ||
if (typeof year === 'undefined') { | ||
if (typeof year === 'undefined') | ||
return this.date.getUTCFullYear(); | ||
} | ||
const century = Math.floor(this.date.getUTCFullYear() / 100) * 100; | ||
@@ -186,0 +185,0 @@ return year + century; |
{ | ||
"name": "@bodar/totallylazy", | ||
"version": "0.435.278", | ||
"version": "0.436.279", | ||
"description": "Totallylazy", | ||
@@ -5,0 +5,0 @@ "repository": "git@github.com:bodar/totallylazy.js.git", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
439447
-0.01%6448
-0.02%