Tide · API

tide.nextDue

tide.nextDue returns the earliest time at which advance can make progress, as a timestamp in milliseconds: the time for the host’s next advance call. It returns undefined when nothing is scheduled, and the host then waits until it has a fact to ingest.

Reflex
{
  id: 'doors.open',
  intent: 'Open the doors at seven on Saturday.',
  on: {
    clock: { at: '2026-10-24T19:00', tz: 'Europe/Vienna' },
  },
  effect: { name: 'doors.open' },
}
nextDue, call by call
Next due
1792861200000
Next due, Vienna time
'2026-10-24 19:00'
Output matches the expected value

Runs in this page on the installed package. The input and the expected output are defined by the example.