Settimezone() - Keithley 708B Reference Manual

Switching matrix
Hide thumbs Also See for 708B:
Table of Contents

Advertisement

Section 7: Command reference
Details
This function sets the date and time of the system based on the os.time() response passed in as its
parameter. Use year, month, day, hour, min, and sec to set the time as desired. The first three parameters to
os.time() are mandatory while the rest are optional. If the later 3 are not used, they default to noon for that
day. The setting of the time and date does not take into account the time zone. Please update the time for your
time zone.
Time must be specified as UTC time. If only the time needs to be changed, the new hour, minutes, and seconds
can be passed as arguments without using os.time().
Set the time zone before reading the time using os.time() or before generating a UTC time from a local time
specification.
Example
systemTime = os.time({year = 2010,
month = 3,
day = 31,
hour = 14,
min = 25})
settime(systemTime)
print(settime())
print(settime(10, 10, 10))
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
(on page 7-96)
(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
Models 707B and 708B Switching Matrix Reference Manual
Sets the date and time to Mar 31, 2010 at
2:25 pm.
Output:
Wed Mar 31 14:25:05 2010
Wed Mar 31 10:10:10 2010
Where saved
Default value
707B-901-01 Rev. A / August 2010

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

707b

Table of Contents