Difference between revisions of "Common Methods Object"

From Hubitat Documentation
Jump to: navigation, search
(Replaced content with " <big>'''We're moving!''' Please visit http://docs2.hubitat.com for the latest documentation.</big> <big> This document is available at: http://docs2.hubitat.com/en/devel...")
(Tag: Replaced)
 
(46 intermediate revisions by 7 users not shown)
Line 1: Line 1:
These methods can be used in both Apps and Drivers
 
  
== timeOfDayIsBetween ==
+
<big>'''We're moving!''' Please visit http://docs2.hubitat.com for the latest documentation.</big>
  
Check if a date is between two dates.
+
<big>
 
+
This document is available at: http://docs2.hubitat.com/en/developer/common-methods-object
 
+
</big>
'''Signature:'''
 
boolean timeOfDayIsBetween(Date start, Date stop, Date value[, TimeZone timeZone])
 
 
 
'''Parameters:'''
 
 
 
: start - The date to start comparison against.
 
: stop - The date to stop comparison against.
 
: value - The date to compare
 
: timezone - (Optional) The timezone to use for the comparison
 
 
 
 
 
'''Returns:'''
 
: true if the value date is between the start and stop dates, otherwise returns false.
 

Latest revision as of 03:58, 25 September 2022

We're moving! Please visit http://docs2.hubitat.com for the latest documentation.

This document is available at: http://docs2.hubitat.com/en/developer/common-methods-object