Section 15: TSP command reference
Details
If this function fails, it returns nil (for success) and an error message string (for msg).
Example
os.rename("testFile", "exampleFile")
Also see
os.remove()
(on page 15-167)
os.time()
This function generates a time value in UTC time.
Type
TSP-Link accessible
Function
Yes
Usage
utcTime = os.time()
utcTime = os.time(timespec)
utcTime
timespec
Details
The timespec is a table using the fields listed in the table below.
year
month
day
hour
min
sec
If the time (hour, minute, and second) options are not used, they default to noon for that day. When
called without a parameter (the first form), the function returns the current time.
Set the time zone before calling the os.time() function.
Example
systemTime = os.time({year = 2019,
month = 3,
day = 31,
hour = 14,
min = 25})
settime(systemTime)
Also see
settime()
(on page 15-188)
settimezone()
15-168
Affected by
Time value in UTC time
The date and time (year, month, day, hour, and minute)
The year (1970 or later)
The month (1 to 12)
The day (1 to 31)
The hour (00 to 23)
The minute (00 to 59)
The second (00 to 59)
(on page 15-189)
Model 2606B System SourceMeter® Instrument Reference Manual
Changes the name of the existing file
testFile to the name exampleFile.
Where saved
Sets the date and time to Mar 31, 2019
at 2:25 pm.
2606B-901-01 Rev. C November 2021
Default value
Need help?
Do you have a question about the KEITHLEY SourceMeter 2606B and is the answer not in the manual?