CIRCUTOR PowerStudio Series User Manual
Page 104

PowerStudio
104 User Manual
It is also possible to use certain time functions:
sunrise(exp1, exp2):
Returns the number of hours from 00:00 hours until sunrise, the
longitude being expression “exp1” and the latitude expression “exp2”. Parameters “exp1” and “exp2”
are in degrees.
sunset(exp1, exp2):
Returns the number of hours from 00:00 hours until sunset, the
longitude being expression “exp1” and the latitude expression “exp2”. Parameters “exp1” and “exp2”
are in degrees.
sunrisehours(exp1, exp2):
Returns the time of the sunrise, the longitude being
expression “exp1” and the longitude expression “exp2”. Parameters “exp1” and “exp2” are in degrees.
sunriseminutes(exp1, exp2):
Returns the minute of the sunrise, the longitude being
expression “exp1” and the longitude expression “exp2”. Parameters “exp1” and “exp2” are in degrees.
sunriseseconds(exp1, exp2):
Returns the second of the sunrise, the longitude being
expression “exp1” and the longitude expression “exp2”. Parameters “exp1” and “exp2” are in degrees.
sunsethours(exp1, exp2):
Returns the time of the sunset, the longitude being
expression “exp1” and the longitude expression “exp2”. Parameters “exp1” and “exp2” are in degrees.
sunsetminutes(exp1, exp2):
Returns the minute of the sunset, the longitude being
expression “exp1” and the longitude expression “exp2”. Parameters “exp1” and “exp2” are in degrees.
sunsetseconds(exp1, exp2):
Returns the second of the sunset, the longitude being
expression “exp1” and the longitude expression “exp2”. Parameters “exp1” and “exp2” are in degrees.
sunshinehours(exp1, exp2):
Returns the number of hours between the sunrise and the
sunset, the longitude being expression “exp1” and the longitude expression “exp2”. Parameters “exp1”
and “exp2” are in degrees.
sunshineminutes(exp1, exp2):
Returns the number of minutes between the sunrise
and the sunset, the longitude being expression “exp1” and the longitude expression “exp2”.
Parameters “exp1” and “exp2” are in degrees.
sunshineseconds(exp1, exp2):
Returns the number of seconds between the sunrise
and the sunset, the longitude being expression “exp1” and the longitude expression “exp2”.
Parameters “exp1” and “exp2” are in degrees.
getsecond(exp): Returns the second of the date "exp".
getminute(exp): Returns the minute of the date "exp".
gethour(exp): Returns the hour of the date "exp".
getday(exp): Returns the day of the date"exp".
getmonth(exp): Returns the month of the date "exp".
getYear(exp): Returns the year of the date "exp".
second() : Returns the second of the current date.
minute() : Returns the minute of the current date.
hour() : Returns the hour of the current date.
day() : Returns the day of the current date.
month(): Returns the month of the current date.
year() : Returns the year of the current date.
These functions return values relating to the date in the local time of the engine when viewed
from the client, and values relating to the local date of the editor when editing a SCADA screen or
report. The functions that do not contain parameters can be used with or without brackets. The
"second" function returns a value between 0 and 59, like the "minute" function. The "hour" function
returns a value between 0 and 23. The "day" functions returns a value between 1 and 31. The "month"
function returns a value between 1 and 12.
The following time functions are only available in reports.
secondsinperiod(): Returns the number of seconds in the current period of the report
minutesinperiod (): Returns the number of minutes in the current period of the report
hoursinperiod (): Returns the number of hours in the current period of the report
daysinperiod (): Returns the number of days in the current period of the report
beginsecond (): Returns the initial second in the actual period of the current report