Welltech SIPIVR 6800GS V.2.1 User Manual

Page 109

background image

108

Symbol Description Example Result

GetSysTime

double GetSysTime()
Returns current local time
Double is used to store
FILETIME format.

vLocaltime=GetSys
time()

GetUTCTime

double

GetUTCTime()

return current UTC time

vUTCTime=GetUT
CTime()

SysTimeToUTC double SysTimeToUTC(double

vlocaltime)
convert local time variable to
UTC time and return it.

vUTCtime=SysTim
eToUTC(vLocaltim
e)

UTCToSysTime double UTCtoSysTime(double

vsystemtime)
convert UTC time variable to
local time and return it.

vUTCtime=UTCTo
SysTime(vLocaltim
e)

TimeToStr

String TimetoStr(double vtime,
string strfmt)
Convert time variable into string
based on the string format (refer
to Time Duration components)

vStrTime=TimetoStr
(vlocaltime,”hh:mm:
ss”)

TimeDiff

Long TimeDiff (double vtime1,
double vtime2)
Calculate the escaped time from
vtime1 to vtime2.

vEspaceTime=Tim
eDiff(Vtime1,Vtime
2)

SetCTIInfo

Bool

SetCTIInfo(String CTIdata)

True if success and False if not.

vResult=
SetCTIInfo(vCTIDat
a)

GetTimeByTimeZ
one

Double GetTimeByTimeZone(int
iTimeZoneIdx, Double dbUTC)
iTimeZoneIdx: refer to Time Zone
Index Table,
dbUTC: UTC Time variable

vTZTime=GetTime
ByTimeZone(iTime
ZoneIdx, dbUTC)

StrToTime Double

StrToTime(String

szTimeStr)
szTimeStr: Time String in
YYYY/MM/DD hh:mm:ss format.
Return a Double which store
FILETIME format.

vDBTime=StrToTim
e(szTimeStr)

GetYearByTime long

GetYearByTime(Double

dbTime)
Return Year from a Time
variable.

vyear=GetYearByTi
me(dbTime)

e.g.
2007

GetMonthByTime long GetMonthByTime(Double

dbTime)
Return Month from a Time
variable

GetDayByTime long

GetDayByTime(Double

dbTime)

This manual is related to the following products: