@nextcloud/timezones
    Preparing search index...

    Class Timezone

    Index

    Constructors

    • Constructor

      Parameters

      • timezoneId: string

        Id of the timezone

      • ics: string

        The iCalendar timezone definition

      Returns Timezone

    • Parameters

      • timezoneId: Timezone | Component

      Returns Timezone

    Accessors

    • get timezoneId(): string

      Get the timezone id

      Returns string

    Methods

    • Get the UTC Offset for a given date in this timezone.

      Parameters

      • year: number

        Year of the date

      • month: number

        Month of the date (1-based)

      • Optionalday: number

        Day of the date

      • Optionalhour: number

        Hour of the date

      • Optionalminute: number

        Minute of the date

      • Optionalsecond: number

        Second of the date

      Returns number

    • Converts a timestamp to an array of year, month, day, hour, minute, second.

      Parameters

      • ms: number

        Timestamp in milliseconds

      Returns number[]

    • Returns the corresponding ICAL.

      Returns Component