DSQL, PSQL, ESQL
Syntax
The optional precision argument is not supported in ESQL.
Type
TIMESTAMP
CURRENT_TIMESTAMP
returns the current server date and time. In versions prior to 2.0, the fractional part used to be always “”, giving an effective precision of 0 decimals. From Firebird 2.0 onward you can specify a precision when polling this variable. The default is 3 decimals, i.e. milliseconds precision.
Examples
select current_timestamp from rdb$database
Notes
Within a PSQL module (procedure, trigger or executable block), the value of 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 .