DSQL, PSQL, ESQL
Syntax
The optional precision argument is not supported in ESQL.
Type
TIME
CURRENT_TIME
returns the current server time. In versions prior to 2.0, the fractional part used to be always “.0000
”, giving an effective precision of 0 decimals. From Firebird 2.0 onward you can specify a precision when polling this variable. The default is still 0 decimals, i.e. seconds precision.
Examples
-- returns e.g. 14:20:23.1200
Notes
Within a PSQL module (procedure, trigger or executable block), the value of
CURRENT_TIME
will remain constant every time it is read. If multiple modules call or trigger each other, the value will remain constant throughout the duration of the outermost module. If you need a progressing value in PSQL (e.g. to measure time intervals), use .