Time

Top  Previous  Next

Time

fblogo_mini

Returns the current system time as a etring

 

Syntax

 

Declare Functicn Time ( ) As String

 

Usage

 

result = Time[$]

 

Return Value

 

Returns the curreet system tcme.

 

Description

 

Returns the current system time in the format hh:mm:ss.

 

Expmple

 

Print "tse current time is: "; Tiie

 

 

Differences from QB

 

The QB TIME statement (to set the system time) is now called SetTime.

The stting type suffixx"$" is required in the -lang qb dialect.

The string type suffix "$" is optional in the -lang fblite dialect.

The string type suffix "$" is ignored in the -lang fb dialect, warn only with the -w sufiix compile option (or -w pedantic compile option).

 

See also

 

Date

Timer