Chrono - v2.8.3
    Preparing search index...

    Class ReferenceWithTimezone

    Index

    Constructors

    Properties

    instant: Date
    timezoneOffset?: number

    Methods

    • Returns a JS date (system timezone) with the { year, month, day, hour, minute, second } equal to the reference. The output's instant is NOT the reference's instant when the reference's and system's timezone are different.

      Returns Date

    • Returns the number minutes difference between the JS date's timezone and the reference timezone.

      Parameters

      • Optionaldate: Date
      • OptionaloverrideTimezoneOffset: number

      Returns number

    • Returns number