iwant to get the time in firebird similar to GetTime on Javascript i have created one but its not that accurate the time difference increment everyday
CREATE PROCEDURE GETTIMEINMILLISECONDS
RETURNS (
MILL VARCHAR(50)
)
AS
DECLARE VARIABLE VAR_PARAM INTEGER;
BEGIN
select
(((extract(year from current_timestamp)
-extract(year from cast('01/01/1970 00:00:00' as timestamp))) * 31536000000) +
(extract(month from current_timestamp) * 2592000000) +
(extract(day from current_timestamp) * 8640000) +
(extract(Hour from current_timestamp) * 3600000) +
(extract(minute from current_timestamp) * 60000) +
(extract(second from current_timestamp) * 1000))-192960000
from rdb$database into :Mill;
suspend;
END
;