Skip to content

egon-orm-workspace / egon-orm / now

Function: now() ​

ts
function now(): Expr<Date>;

Defined in: core/src/query/functions.ts:712

now(): the database's current time (the start of the transaction on Postgres).

Returns ​

Expr<Date>

Example ​

ts
p.publishedAt.lte(now());