Skip to content
Search
DSL · Pg query

current_time

Definition

/**
 * SQL standard CURRENT_TIME function.
 *
 * Returns the current time (at the start of the transaction).
 * Useful as a column default value or in SELECT queries.
 *
 * Example: column('start_time', column_type_time())->default(current_time())
 * Example: select()->select(current_time()->as('now_time'))
 */
current_time() : SQLValueFunctionExpression

Contributors

Built in the open.

Join us on GitHub
scroll back to top