Section 7: TSP command reference
Series 2600B System SourceMeter® Instrument Reference Manual
7-192
2600BS-901-01 Rev. C / August 2016
settime()
This function sets the real-time clock (sets present time of the system).
Type
TSP-Link accessible
Affected by
Where saved
Default value
Function
Yes
Usage
settime(
time
)
time
The time in seconds since January 1, 1970 UTC
Details
This function sets the date and time of the instrument based on the
time
parameter (specified 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
systemTime = os.time({year = 2010,
month = 3,
day = 31,
hour = 14,
min = 25})
settime(systemTime)
Sets the date and time to Mar 31, 2010 at
2:25 pm.
Also see
(on page 7-107)
(on page 7-164)
(on page 7-192)
settimezone()
This function sets the local time zone.
Type
TSP-Link accessible
Affected by
Where saved
Default value
Function
No
Usage
settimezone(
offset
)
settimezone(
offset
,
dstOffset
,
dstStart
,
dstEnd
)
offset
String representing offset from UTC
dstOffset
String representing the daylight savings offset from UTC
dstStart
String representing when daylight savings time starts
dstEnd
String representing when daylight savings time ends