11.01.2013 Views

Oracle Forms Developer – Form Builder Reference, Volume 1

Oracle Forms Developer – Form Builder Reference, Volume 1

Oracle Forms Developer – Form Builder Reference, Volume 1

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

SYSTEM.CURRENT_DATETIME system variable<br />

Syntax<br />

SYSTEM.CURRENT_DATETIME<br />

Description<br />

SYSTEM.CURRENT_DATETIME is a variable representing the operating system date. The value is a<br />

CHAR string in the following format:<br />

DD-MON-YYYY HH24:MM:SS<br />

Default<br />

current date<br />

Usage Notes<br />

SYSTEM.CURRENT_DATETIME is useful when you want to use the current operating system date<br />

and time in a PL/SQL trigger or procedure. By using SYSTEM.CURRENT_DATETIME instead of<br />

$$DBDATETIME$$, you can avoid the performance impact caused by querying the database.<br />

Note: Local time and database time may differ.<br />

SYSTEM.CURRENT_DATETIME examples<br />

378<br />

/*<br />

**<br />

** trigger: WHEN-TIMER-EXPIRED<br />

** Example: Update on-screen time every 30 seconds<br />

*/<br />

DECLARE<br />

time VARCHAR2(20);<br />

BEGIN<br />

time := :System.Current_Datetime;<br />

:control.onscreen := SUBSTR(time, instr(time,’ ’)+1);<br />

END;

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!