Section 12: SCPI command reference
2470 High Voltage SourceMeter Instrument Reference Manual
12-116
2470-901-01 Rev. A /
May
2019
:SYSTem:TIME
This command sets the absolute time of the instrument.
Type
Affected by
Where saved
Default value
Command and query
Not applicable
Nonvolatile memory
See
Details
Usage
:SYSTem:TIME <year>, <month>, <day>, <hour>, <minute>, <second>
:SYSTem:TIME <hour>, <minute>, <second>
:SYSTem:TIME?
:SYSTem:TIME? 1
<year>
Year; must be more than 1970
<month>
Month (1 to 12)
<day>
Day (1 to 31)
<hour>
Hour in 24-hour time format (0 to 23)
<minute>
Minute (0 to 59)
<second>
Second (0 to 59)
Details
When queried without a parameter, this command returns the present timestamp value in seconds
since January 1, 1970 to the nearest second.
If you query with
1
, this command returns the present timestamp in the format:
<weekday> <month> <day> <hour>:<minute>:<second> <year>
Where
<weekday>
is the day of the week.
Internally, the instrument bases time in UTC time. UTC time is specified as the number of seconds
since Jan 1, 1970, UTC. You can use UTC time from a local time specification, or you can use UTC
time from another source (for example, your computer).
Example
syst:time 2018, 2, 15, 11, 30, 30
syst:time? 1
Set the system time to February 15, 2018 at 11:30:30 and
confirm setting.
Output:
Thu Feb 15 11:30:35 2018
Also see
None