Official Content

Stores the current time in hh:mm:ss format.

Data Type:
Character (8)

Scope

Objects: Procedure, Transaction, Web Panel

Description

The &Time standard variable contains the value of the Time function stored at the beginning of the program.

In case it’s used in a Procedure header, the time will be displayed every time the header is evaluated, and not when the page is printed.

Samples

Consider the Invoice Transaction:

Invoice
{
  InvoiceId*
  InvoiceDate
  InvoiceTime
  ....
  InvoiceAmount
}

Transaction Rules:

InvoiceTime = &Time if on BeforeInsert;

The &Time variable is evaluated at the beginning of the Transaction so the recorded time corresponds to that moment. 

If the Time() function is used:

InvoiceTime = Time() on BeforeInsert;

The assigned value corresponds to the moment in which the rule is evaluated.

See Also

Built-in Variable List
Time function
Systime function

  


  
Last update: April 2024 | © GeneXus. All rights reserved. GeneXus Powered by Globant