import { Temporal, Components, DateDelta, TimeDelta, DateUnit, TimeUnit } from './types'; import { Zone } from './Zone'; import { Clock } from './Clock'; import { CivilDate } from './CivilDate'; import { CivilTime } from './CivilTime'; import { CivilDateTime } from './CivilDateTime'; import { OffsetTime } from './OffsetTime'; import { OffsetDateTime } from './OffsetDateTime'; import { Instant } from './Instant'; import { Equatable, Comparable } from '@esfx/equatable'; export declare class ZonedDateTime implements Temporal, Equatable, Comparable { constructor(instant: Instant, zone: Zone | string); readonly instant: Instant; readonly zone: Zone; readonly ianaZone: string; readonly timeZone: string; readonly offset: import("./Zone").ZoneOffset; readonly offsetSeconds: number; readonly offsetString: string; readonly year: number; readonly month: number; readonly day: number; readonly dayOfYear: number; readonly dayOfWeek: number; readonly weekOfYear: number; readonly hour: number; readonly minute: number; readonly second: number; readonly millisecond: number; readonly nanosecond: number; plus(deltas?: Components): ZonedDateTime; minus(deltas?: Components): ZonedDateTime; with(components?: Components): ZonedDateTime; /** * Returns a new [[ZonedDateTime]] with the same [[Instant]], but for a different time-zone. * @param zone The new time zone. * @example * const a = ZonedDateTime.fromString("2019-01-04T15:38:00.000000000-08:00[America/Los_Angeles]"); * const b = a.withZoneSameInstant("America/New_York"); * console.log(b); * * // prints: * // 2019-01-04T18:38:00.000000000-05:00[America/New_York] */ withZoneSameInstant(zone: Zone | string): ZonedDateTime; /** * Returns a new [[ZonedDateTime]] with the same local time, but for a different time-zone. * @param zone The new time zone. * @example * const a = ZonedDateTime.fromString("2019-01-04T15:38:00.000000000-08:00[America/Los_Angeles]"); * const b = a.withZoneSameLocal("America/New_York"); * console.log(b); * * // prints: * // 2019-01-04T15:38:00.000000000-05:00[America/New_York] */ withZoneSameLocal(zone: Zone | string): ZonedDateTime; until(other: ZonedDateTime): import("./Duration").Duration; since(other: ZonedDateTime): import("./Duration").Duration; equals(other: ZonedDateTime): boolean; compareTo(other: ZonedDateTime): number; toCivilDate(): CivilDate; toCivilTime(): CivilTime; toCivilDateTime(): CivilDateTime; toOffsetTime(): OffsetTime; toOffsetDateTime(): OffsetDateTime; toZonedCalendarDateTimeString(): string; toZonedWeekDateTimeString(): string; toZonedOrdinalDateTimeString(): string; toISOCalendarDateTimeString(): string; toISOWeekDateTimeString(): string; toISOOrdinalDateTimeString(): string; toString(): string; toISOString(): string; toJSON(): string; static fromCalendarDateTime(zone: Zone | string, year: number, month: number, day: number, hour: number, minute: number, second?: number, millisecond?: number, nanosecond?: number): ZonedDateTime; static fromWeekDateTime(zone: Zone | string, year: number, weekOfYear: number, dayOfWeek: number, hour: number, minute: number, second?: number, millisecond?: number, nanosecond?: number): ZonedDateTime; static fromOrdinalDateTime(zone: Zone | string, year: number, dayOfYear: number, hour: number, minute: number, second?: number, millisecond?: number, nanosecond?: number): ZonedDateTime; static fromString(text: string): ZonedDateTime; static now(clock: Clock): ZonedDateTime; [Equatable.equals](other: unknown): boolean; [Equatable.hash](): number; [Comparable.compareTo](other: unknown): number; }