interface MomentTimezone { dataVersion: string; add(packedZoneString): void; add(packedZoneString): void; countries(): string[]; guess(ignoreCache?): string; link(packedLinkString): void; link(packedLinkString): void; load(data): void; names(): string[]; setDefault(timezone?): Moment; zone(timezone): null | MomentZone; zonesForCountry<T>(country,
with_offset): T extends true ? MomentZoneOffset[] : never; zonesForCountry<T>(country,
with_offset?): T extends false ? string[] : never; zonesForCountry(country,
with_offset?): string[] | MomentZoneOffset[]; (): Moment; (timezone): Moment; (date,
timezone): Moment; (date,
timezone): Moment; (date,
timezone): Moment; (date,
format,
timezone): Moment; (date,
format,
strict,
timezone): Moment; (date,
format,
language,
timezone): Moment; (date,
format,
language,
strict,
timezone): Moment; (date,
timezone): Moment; (date,
timezone): Moment; (date,
timezone): Moment; } - MomentTimezone(): Moment
- MomentTimezone(timezone): Moment
- MomentTimezone(date, timezone): Moment
Parameters
date: number
timezone: string
- MomentTimezone(date, timezone): Moment
Parameters
date: number[]
timezone: string
- MomentTimezone(date, timezone): Moment
Parameters
date: string
timezone: string
- MomentTimezone(date, format, timezone): Moment
Parameters
date: string
timezone: string
- MomentTimezone(date, format, strict, timezone): Moment
Parameters
date: string
strict: boolean
timezone: string
- MomentTimezone(date, format, language, timezone): Moment
Parameters
date: string
language: string
timezone: string
- MomentTimezone(date, format, language, strict, timezone): Moment
Parameters
date: string
language: string
strict: boolean
timezone: string
- MomentTimezone(date, timezone): Moment
Parameters
date: Date
timezone: string
- MomentTimezone(date, timezone): Moment
- MomentTimezone(date, timezone): Moment
Parameters
date: any
timezone: string
Properties
dataVersion
dataVersion: string
Methods
add
- add(packedZoneString): void
Returns void
- add(packedZoneString): void
Parameters
packedZoneString: string[]
Returns void
countries
- countries(): string[]
Returns string[]
guess
- guess(ignoreCache?): string
Parameters
Optional
ignoreCache: boolean
Returns string
link
- link(packedLinkString): void
Returns void
- link(packedLinkString): void
Parameters
packedLinkString: string[]
Returns void
load
- load(data): void
Parameters
data: {
links: string[];
version: string;
zones: string[];
}
links: string[]
version: string
zones: string[]
Returns void
names
- names(): string[]
Returns string[]
setDefault
- setDefault(timezone?): Moment
Parameters
Optional
timezone: string
zonesForCountry
- zonesForCountry<T>(country, with_offset): T extends true
? MomentZoneOffset[]
: never Parameters
country: string
with_offset: T
- zonesForCountry<T>(country, with_offset?): T extends false
? string[]
: never Parameters
country: string
Optional
with_offset: T
Returns T extends false
? string[]
: never
- zonesForCountry(country, with_offset?): string[] | MomentZoneOffset[]
Parameters
country: string
Optional
with_offset: boolean