grahan — the open-source sky engine
    Preparing search index...

    Function dateFromZonedTime

    • The UTC instant at which timeZone shows the given wall clock. DST edges: a nonexistent time (spring-forward gap) maps to a real instant within an hour of the gap; an ambiguous time (fall-back) resolves to the earlier of the two instants.

      Parameters

      Returns Date

      dateFromZonedTime(
      { year: 1993, month: 8, day: 18, hour: 11, minute: 0, second: 0 },
      'Asia/Kathmandu',
      ).toISOString(); // "1993-08-18T05:15:00.000Z"