CURRENT_TIME

4D - Documentation   Français   English   German   Japanese   4D SQL Reference, Table of Contents   4D SQL Reference, Index   Back   Previous   Next

version 11


CURRENT_TIME ( )

Description

The CURRENT_TIME function returns the current local time.

Example

This example creates a table of invoices and inserts the current time into the INV_DATE column:

   ARRAY STRING(30;aDate;0)
   Begin SQL
      CREATE TABLE INVOICES 
      (INV_DATE VARCHAR(40));
      
      INSERT INTO INVOICES
      (INV_DATE)    
      VALUES (CURRENT_TIME());
      
      SELECT * 
      FROM INVOICES
      INTO :aDate;
   End SQL
      `the aDate array will return the INSERT command execution date and time.

See Also

CURRENT_DATE, CURRENT_TIMESTAMP.


4D - Documentation   Français   English   German   Japanese   4D SQL Reference, Table of Contents   4D SQL Reference, Index   Back   Previous   Next