move isLeap to Util

This commit is contained in:
Dragon Fire
2020-12-02 17:11:43 -05:00
parent 9d946ca8db
commit 7d08724443
2 changed files with 6 additions and 6 deletions
+4
View File
@@ -169,6 +169,10 @@ module.exports = class Util {
return today;
}
static isLeap(year) {
return ((year % 4 === 0) && (year % 100 !== 0)) || (year % 400 === 0);
}
static magikToBuffer(magik) {
return new Promise((res, rej) => {
magik.toBuffer((err, buffer) => {