Get(CurrentTime)
Returns the current time (to the nearest second) according to the system clock.
Format
Get ( CurrentTime )
Parameters
None
Data type returned
time
Originated in version
6.0 or earlier
Description
The data type of a calculation result determines how the returned value of this function is represented.
If the calculation result is |
This function returns |
time or text |
The current time in the format determined by the operating system settings when the file was created Note If the number of seconds is zero, seconds are not included—for example, 11:30 AM. |
a number |
The total number of seconds elapsed since the start of the current day |
Notes
- In client-server and peer-to-peer environments, this function returns the time on the client machine. To get the host machine's date and time, use the Get(CurrentHostTimestamp) function.
Example 1
Returns 11:30:01 AM when the calculation result is text and the system clock shows 11:30:01 AM. For an example script, see Install OnTimer Script script step.