Settimezone() - Keithley 2651A Reference Manual

High power system sourcemeter instrument
Hide thumbs Also See for 2651A:
Table of Contents

Advertisement

Section 7: Command reference
To use the Lua os.time() function to generate a time value in UTC time, use the following format:
os.time({year = year, month = month, day = day, hour = hour, min = min, sec = sec})
Where:
= A full year (2006 or later)
year
= The desired month (1 to 12)
month
= The desired day (1 to 31)
day
= The desired hour (00 to 23)
hour
= The desired minute (00 to 59)
min
= The desired second (00 to 59)
sec
When you are using the os.time() function, make sure that you include the year, month, and day
parameters, which are mandatory (the rest are optional). If the other parameters are not used, they default to
noon for that day.
Set the time zone before calling the os.time() function.
Example
systemTime = os.time({year = 2010,
month = 3,
day = 31,
hour = 14,
min = 25})
settime(systemTime)
Also see
gettimezone()

settimezone()

settimezone()
This function sets the local time zone.
Type
TSP-Link accessible
Function
No
Usage
settimezone(offset)
settimezone(offset, dstOffset, dstStart, dstEnd)
offset
dstOffset
dstStart
dstEnd
7-168
Model 2651A High Power System SourceMeter® Instrument Reference Manual
(on page 7-92)
(on page 7-168)
Affected by
String representing offset from UTC
String representing daylight savings offset from UTC
String representing when daylight savings time starts
String representing when daylight savings time ends
Sets the date and time to Mar 31, 2010 at
2:25 pm.
Where saved
Default value
2651A-901-01 Rev. A / March 2011

Advertisement

Table of Contents
loading

Table of Contents