Localnode.settime() - Keithley DMM7510 Reference Manual

7 1/2 digit graphical sampling multimeter
Hide thumbs Also See for DMM7510:
Table of Contents

Advertisement

Section 8: TSP command reference

localnode.settime()

This function sets the date and time of the instrument.
Type
TSP-Link accessible
Function
Yes
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
month
day
hour
minute
second
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(2014, 3, 31, 14, 25, 0)
print(localnode.settime())
Example 2
systemTime = os.time({year = 2014,
month = 3,
day = 31,
hour = 14,
min = 25})
localnode.settime(systemTime)
print(os.date('%c', gettime()))
Also see
localnode.gettime()
8-226
Model DMM7510 7½ Digit Graphical Sampling Multimeter Reference Manual
Affected by
Year; must be more than 1970
Month (1 to 12)
Day (1 to 31)
Hour in 24-hour time format (0 to 23)
Minute (0 to 59)
Second (0 to 59)
(on page 8-221)
Where saved
Default value
Sets the date and time to Mar 31, 2014 at 2:25 pm
and verifies the time.
Output:
Mon Mar 31 14:25:09 2014
Sets the date and time to Mar 31, 2014 at
2:25 pm.
Output:
Wed Mar 31 14:25:00 2010
DMM7510-901-01 Rev. B / May 2015

Advertisement

Table of Contents
loading

Table of Contents