MCPcopy Create free account
hub / github.com/sequelize/sequelize / now

Function now

src/utils.js:341–347  ·  view source on GitHub ↗
(dialect)

Source from the content-addressed store, hash-verified

339const dialects = new Set(['mariadb', 'mysql', 'postgres', 'sqlite', 'mssql', 'db2', 'oracle']);
340
341function now(dialect) {
342 const d = new Date();
343 if (!dialects.has(dialect)) {
344 d.setMilliseconds(0);
345 }
346 return d;
347}
348exports.now = now;
349
350// Note: Use the `quoteIdentifier()` and `escape()` methods on the

Callers 1

toDefaultValueFunction · 0.85

Calls 1

hasMethod · 0.45

Tested by

no test coverage detected