TypeTIME WITHOUT TIME ZONE
Syntax
The optional precision argument is not supported in ESQL.
LOCALTIME
returns the current server time in the session time zone. The default is 0 decimals, i.e. seconds precision.
LOCALTIME
was introduced in Firebird 3.0.4 and Firebird 2.5.9 as an alias ofCURRENT_TIME
. In Firebird 4.0,CURRENT_TIME
returns a instead of aTIME [WITHOUT TIME ZONE]
, whileLOCALTIME
returnsTIME [WITHOUT TIME ZONE]
. It is recommended to useLOCALTIME
when you do not need time zone information.LOCALTIME
has a default precision of 0 decimals, whereLOCALTIMESTAMP
has a default precision of 3 decimals. As a result,LOCALTIMESTAMP
is not the exact sum of andLOCALTIME
, unless you explicitly specify a precision (i.e.LOCALTIME(3)
orLOCALTIMESTAMP(0)
).
select localtime from rdb$database
-- returns e.g. 14:20:19.0000
-- returns e.g. 14:20:23.1200
See also, Section 11.12, LOCALTIMESTAMP