470 High Voltage SourceMeter Instrument Reference Manual Section 14:
2470-901-01 Rev. A / May 2019 14-93
Example
display.settext(display.TEXT2, "Serial #: " ..localnode.serialno)
display.changescreen(display.SCREEN_USER_SWIPE)
Clears the instrument display.
Places the serial number of this instrument on the bottom line of the USER swipe screen display. Displays the
Also see
localnode.model (on page 14-90)
localnode.version (on page 14-95)
localnode.settime()
This function sets the date and time of the instrument.
Type TSP-Link accessible
Affected by Where saved Default value
Usage
localnode.settime()
localnode.settime(year, month, day, hour, minute, second)
localnode.settime(hour, minute, second)
localnode.settime(os.time({year, month, day}))
localnode.settime(os.time({year = year, month = month, day = day, hour = hour, min =
minute, sec = second}))
Year; must be more than 1970
Hour in 24-hour time format (0 to 23)
Details
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).
When called without a parameter (the first form), the function returns the current time.
Example 1
localnode.settime(2017, 12, 5, 15, 48, 20)
print(localnode.settime())
Sets the date and time to December 5, 2017
at 3:48:20 pm and verifies the time.
Output: