Owner's Manual (Complete)

Chapter 11 - Expressions
The Home Control Assistant
9
number = _dayOfYear (dateTime)
Returns the day of the year as a number from 1 to 366, where 1 is January 1st
example: _dayOfYear(_now())
result: 257
dateTime = _now ()
Returns the current date-time
dateTime = _sunrise ()
Returns the time of sunrise for today
dateTime = _sunset ()
Returns the time of sunset for today
dateTimeSpan = _Days (number)
Returns a time span of the given number of days. See below for some date time span
examples.
dateTimeSpan = _Hours (number)
Returns a time span of the given number of hours
dateTimeSpan = _Minutes ()
Returns a time span of the given number of minutes
dateTimeSpan = _Seconds()
Returns a time span of the given number of seconds
dateTimeSpan = _TimeSpan (days, hours, minutes, seconds)
Returns a time span of days, hours, minutes, seconds
string = _weekday (number)
Returns a string of the three letter abbreviation of the weekday.
The argument is the number of days to go back. So if today is Monday then
_weekday(0) is "Mon"
_weekday(1) is "Sun"
_weekday(2) is "Sat"
string = _weekdayName (number, bool)
Returns a string of the weekday. If the 2
nd
parameter is 0, the three letter abbreviation is used.
_weekdayName(1, 0) is "Sun"
_weekdayName(1, 1) is "Sunday"
_weekdayName(7, 0) is "Sat"
string = _monthName (number, bool)
Returns a string of the month. If the 2
nd
parameter is 0, the three letter abbreviation is used.
_monthName(1, 0) is "Jan"
_monthName(1, 1) is "January"
_monthName(12, 0) is "Dec"
string = _FormatTime (dateTime, pattern)
Returns a string of the date-time formatted according to the pattern. The pattern is a string
made up of these replacements: