From 40df108f5332a2586a64116ea23111dfbe23f034 Mon Sep 17 00:00:00 2001 From: "Navy.gif" Date: Sun, 22 Aug 2021 14:48:05 +0300 Subject: [PATCH] util --- src/Util.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Util.js b/src/Util.js index 5f5b155..f76667f 100644 --- a/src/Util.js +++ b/src/Util.js @@ -1,3 +1,4 @@ +const moment = require('moment'); const path = require('path'); const fs = require('fs'); const fetch = require('node-fetch'); @@ -127,6 +128,10 @@ class Util { return `${word}s`; } + static get date() { + return moment().format("YYYY-MM-DD hh:mm:ss"); + } + } module.exports = Util; \ No newline at end of file