Axinom Mosaic Libraries
    Preparing search index...
    • Creates a new Date object, but also adds provided number of seconds to it. Specify positive number to get a date in the future and negative to get a date in the past.

      const futureDate = createOffsetDate(10); // new Date() plus 10 seconds
      const pastDate = createOffsetDate(-10); // new Date() minus 10 seconds

      Parameters

      • seconds: number

      Returns Date