Library API
    Preparing search index...

    Function isDST

    • Determines whether the given (or current) date is observing Daylight Saving Time.

      Parameters

      • Optionaldate: string | ZonedDateTime

        Optional ZonedDateTime or ISO string to check

      • timeZone: string = ...

        The timezone to use if creating a new date (default: system local)

      Returns boolean

      True if the date is in DST, false otherwise