Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • MomentTimezone

Callable

Index

Properties

dataVersion: string

Methods

  • add(packedZoneString: string): void
  • add(packedZoneString: string[]): void
  • Parameters

    • packedZoneString: string

    Returns void

  • Parameters

    • packedZoneString: string[]

    Returns void

  • countries(): string[]
  • Returns string[]

  • guess(ignoreCache?: boolean): string
  • Parameters

    • Optional ignoreCache: boolean

    Returns string

  • link(packedLinkString: string): void
  • link(packedLinkString: string[]): void
  • Parameters

    • packedLinkString: string

    Returns void

  • Parameters

    • packedLinkString: string[]

    Returns void

  • load(data: { links: string[]; version: string; zones: string[] }): void
  • Parameters

    • data: { links: string[]; version: string; zones: string[] }
      • links: string[]
      • version: string
      • zones: string[]

    Returns void

  • names(): string[]
  • Returns string[]

  • Parameters

    • timezone: string

    Returns null | MomentZone

  • zonesForCountry<T>(country: string, with_offset: T): T extends true ? MomentZoneOffset[] : never
  • zonesForCountry<T>(country: string, with_offset?: T): T extends false ? string[] : never
  • zonesForCountry(country: string, with_offset?: boolean): string[] | MomentZoneOffset[]
  • Type Parameters

    • T extends true

    Parameters

    • country: string
    • with_offset: T

    Returns T extends true ? MomentZoneOffset[] : never

  • Type Parameters

    • T extends false

    Parameters

    • country: string
    • Optional with_offset: T

    Returns T extends false ? string[] : never

  • Parameters

    • country: string
    • Optional with_offset: boolean

    Returns string[] | MomentZoneOffset[]

Generated using TypeDoc