Search notes:

Oracle: SYSTIMESTAMP

SYSTIMESTAMP evaluates to a TIMESTAMP(6) WITH TIMEZONE that corresponds to the current date/time.
declare
  t0 timestamp;
  t1 timestamp;

  diff_interval interval day(0) to second(6);
  diff_seconds  number;
begin

  t0 := systimestamp;
  t1 := systimestamp;

  diff_interval := t1 - t0;
  diff_seconds  := extract(second from diff_interval);


  dbms_output.put_line('Diff: ' || diff_seconds || ' seconds.');

end;
/
Github repository Oracle-Patterns, path: /SQL/functions/date_related/systimestamp.sql

See also

sysdate, current_timestamp
Time zone related stuff
Other date related SQL functions

Index

Fatal error: Uncaught PDOException: SQLSTATE[HY000]: General error: 8 attempt to write a readonly database in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php:78 Stack trace: #0 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(78): PDOStatement->execute(Array) #1 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(30): insert_webrequest_('/notes/developm...', 1740478164, '18.225.92.23', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/development/databases/Oracle/SQL/functions/date/systimestamp(65): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78