Owner's Manual (Complete)

Chapter 11 - Expressions
8 The Home Control Assistant
Time and date functions
For these examples, assume that the current time is 02:12:45 pm and the current date is Friday 14-
September-2001
number = _hour (dateTime)
example: _hour(_now())
result: 14
number = _minute (dateTime)
example: _minute(_now())
result: 12
number = _second (dateTime)
example: _second(_now())
result: 45
dateTime = _time (hour, minute, second)
example: _time(14, 12, 45)
result: A time of 02:12:45 pm
number = _day (dateTime)
example: _day(_now())
result: 14
number = _month (dateTime)
example: _month(_now())
result: 9
number = _year (dateTime)
example: _year(_now())
result: 2001
dateTime = _date (year, month, day)
example: _date(2001, 9, 14)
result: A date of 14-September-2001
dateTime = _datetime (year, month, day, hour, minute, second)
example: _datetime(2001, 9, 14, 14, 12, 45)
result: 14-September-2001 02:12:45 pm
number = _totalHours (dateTime)
Returns the number of hours represented by the date-time.
example: _totalHours(_time(7,30,50))
result: 7
number = _totalMinutes (dateTime)
Returns the number of minutes represented by the date-time.
example: _totalMinutes(_time(7,30,50))
result: 450
number = _totalSeconds (dateTime)
Returns the number of hours represented by the date-time.
example: _totalSeconds(_time(7,30,50))
result: 27050
number = _dayOfWeek (dateTime)
Returns the day of the week as a number from 1 to 7, where 1 is Sunday
example: _dayOfWeek(_now())
result: 6