MCPcopy
hub / github.com/sequelize/sequelize / now

Function now

lib/utils.js:328–334  ·  view source on GitHub ↗
(dialect)

Source from the content-addressed store, hash-verified

326const dialects = new Set(['mariadb', 'mysql', 'postgres', 'sqlite', 'mssql', 'db2']);
327
328function now(dialect) {
329 const d = new Date();
330 if (!dialects.has(dialect)) {
331 d.setMilliseconds(0);
332 }
333 return d;
334}
335exports.now = now;
336
337// 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