Skip to main content

This is documentation for Caché & Ensemble.

For information on converting to InterSystems IRISOpens in a new window, see the InterSystems IRIS Adoption Guide and the InterSystems IRIS In-Place Conversion Guide, both available on the WRC Distributions pageOpens in a new window (login required).

Time

Returns the current system time.

Synopsis

Time

Arguments

none

Description

The Time function returns the current time in a format such as the following:

00:00:00PM

In this case, time is represented by a 12–hour clock with an AM/PM indicator and no fractional seconds. The exact display format depends on your system configuration. Leading zeros are displayed.

Examples

The following example uses the Time function to return the current system time:

Dim MyTime
MyTime = Time
Println MyTime
Copy code to clipboard

See Also

  • Basic: Date function, Now function

  • ObjectScript: $HOROLOG special variable

  • SQL: NOW function

FeedbackOpens in a new window