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

    Function zonedTimeFromDate

    • The wall clock shown in timeZone at a given instant.

      Parameters

      • date: Date
      • timeZone: string

      Returns ZonedDateTime

      zonedTimeFromDate(new Date('1993-08-18T05:15:00Z'), 'Asia/Kathmandu');
      // { year: 1993, month: 8, day: 18, hour: 11, minute: 0, second: 0 }