Description

Returns a string expressing the current time and date in external (display) format.

Syntax

time_date = TimeDate()

Parameters

The TimeDate function returns the time and date in a standard format. It is possible to override that format using an environmental setting.

If no TimeDate format override is specified in the environment, OpenInsight uses a standard system-defined format. The standard system-defined format is the current time and date, in 24-hour days, with colons separating the hours, minutes and seconds. English language month name abbreviations (uppercase) are used. The designations AM and PM are not used. See the example below:

11:30:53 28 NOV 1994

Use of the TimeDate override environment setting will change the output format. This will affect some OpenInsight processes, for example the time and date that is sent to the printer. This will also change the output format in your programs that use the BASIC+ TimeDate function.

Note: The data that is returned is the local workstation data.

See also

Date()IConv()OConv()Time()

Example

* Assigns the string value of time and date to the variable now.
now = TimeDate()
  • No labels