Entracte (TypeScript)
    Preparing search index...

    Function secondsUntil

    • Whole seconds from now until the local datetime target (a string from an <input type="datetime-local">, or a Date). Returns null for an invalid value or any time at/before now — the caller uses null to mean "nothing to pause for." A bare date-time string with no timezone is interpreted as local time, matching the picker.

      Parameters

      • target: string | Date
      • now: Date = ...

      Returns number | null