dayWindows
dayWindows(
now):object
Today so far, and yesterday up to the same time on the clock: the fair comparison at 3 PM is yesterday’s midnight to 3 PM, not all of yesterday. Wall-clock times, so a day that’s 23 or 25 hours long (daylight saving) still lines up.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
now |
Date |
Returns
Section titled “Returns”object
today:
object
today.from
Section titled “today.from”from:
Date
today.to
Section titled “today.to”to:
Date
yesterday
Section titled “yesterday”yesterday:
object
yesterday.from
Section titled “yesterday.from”from:
Date
yesterday.to
Section titled “yesterday.to”to:
Date