4D v16

CURRENT_TIME

Home

 
4D v16
CURRENT_TIME

CURRENT_TIME  


 

 

Command CURRENT_TIMECURRENT_TIME ( )

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 TEXT(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

 
PROPERTIES 

Product: 4D
Theme: Functions

 
HISTORY 

 
ARTICLE USAGE

4D SQL Reference ( 4D v16)