Could you provide implementation of stored function to get current systimestamp
as milliseconds.
Something I can use like
select current_tim
The best thing I know of is:
select extract(day from (systimestamp - timestamp '1970-01-01 00:00:00')) * 86400000
+ extract(hour from (systimestamp - timestamp '1970-01-01 00:00:00')) * 3600000
+ extract(minute from (systimestamp - timestamp '1970-01-01 00:00:00')) * 60000
+ extract(second from (systimestamp - timestamp '1970-01-01 00:00:00')) * 1000 unix_time
from dual;
I'm not quite sure what requirements you have regarding time zone. You might need to make minor adjustments for that.