SystemTime() Function

Top 

Description

The current date and time of the system in the International Atomic Time (TAI) system represented in the Modified Julian Date format. To retrieve Greenwich Mean Time (GMT) in the TAI system, the machine should be configured to align with the GMT time zone rather than the local time. Alternatively, the user can add or subtract the appropriate number of hours to the SystemTime function to account for the difference between local time and GMT.

 

The SystemTime function's resolution is dependent upon the operating system's timer resolution, which is typically 15.625 ms in Windows (equivalent to a 64 Hz timer frequency).

 

Timing Precision Mode

This page describes functionality in nanosecond timing precision mode.

 

Function Signature

SystemTime(

)

 

Return Value

Type:

timespan

Units:

day

 

Returns the computer's current date and time in the International Atomic Time (TAI) system represented in the Modified Julian Date format.

 

Syntax

myTimeSpan1 = SystemTime();

 

See also

SystemTime