Initial commit
This commit is contained in:
14
node_modules/knex/lib/migrations/util/timestamp.js
generated
vendored
Executable file
14
node_modules/knex/lib/migrations/util/timestamp.js
generated
vendored
Executable file
@@ -0,0 +1,14 @@
|
||||
function yyyymmddhhmmss() {
|
||||
const now = new Date();
|
||||
|
||||
return (
|
||||
now.getUTCFullYear().toString() +
|
||||
(now.getUTCMonth() + 1).toString().padStart(2, '0') +
|
||||
now.getUTCDate().toString().padStart(2, '0') +
|
||||
now.getUTCHours().toString().padStart(2, '0') +
|
||||
now.getUTCMinutes().toString().padStart(2, '0') +
|
||||
now.getUTCSeconds().toString().padStart(2, '0')
|
||||
);
|
||||
}
|
||||
|
||||
module.exports = { yyyymmddhhmmss };
|
||||
Reference in New Issue
Block a user