Difference between revisions of "Common Methods Object"
Line 1: | Line 1: | ||
These methods can be used in both Apps and Drivers | These methods can be used in both Apps and Drivers | ||
− | == timeOfDayIsBetween == | + | == <code>timeOfDayIsBetween</code> == |
Check if a date is between two dates. | Check if a date is between two dates. |
Revision as of 19:18, 9 September 2018
These methods can be used in both Apps and Drivers
timeOfDayIsBetween
Check if a date is between two dates.
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.