Callable
- MomentTimezone(): export=.Moment
- MomentTimezone(timezone: string): export=.Moment
- MomentTimezone(date: number, timezone: string): export=.Moment
- MomentTimezone(date: number[], timezone: string): export=.Moment
- MomentTimezone(date: string, timezone: string): export=.Moment
- MomentTimezone(date: string, format: export=.MomentFormatSpecification, timezone: string): export=.Moment
- MomentTimezone(date: string, format: export=.MomentFormatSpecification, strict: boolean, timezone: string): export=.Moment
- MomentTimezone(date: string, format: export=.MomentFormatSpecification, language: string, timezone: string): export=.Moment
- MomentTimezone(date: string, format: export=.MomentFormatSpecification, language: string, strict: boolean, timezone: string): export=.Moment
- MomentTimezone(date: Date, timezone: string): export=.Moment
- MomentTimezone(date: export=.Moment, timezone: string): export=.Moment
- MomentTimezone(date: any, timezone: string): export=.Moment
Parameters
Parameters
date: number
timezone: string
Parameters
date: number[]
timezone: string
Parameters
date: string
timezone: string
Parameters
date: string
timezone: string
Parameters
date: string
strict: boolean
timezone: string
Parameters
date: string
language: string
timezone: string
Parameters
date: string
language: string
strict: boolean
timezone: string
Parameters
Parameters
Parameters
date: any
timezone: string
Properties
dataVersion
dataVersion: string
Methods
add
- add(packedZoneString: string): void
- add(packedZoneString: string[]): void
Parameters
Returns void
Parameters
packedZoneString: string[]
Returns void
guess
- guess(ignoreCache?: boolean): string
Parameters
Optional ignoreCache: boolean
Returns string
link
- link(packedLinkString: string): void
- link(packedLinkString: string[]): void
Parameters
Returns void
Parameters
packedLinkString: string[]
Returns void
load
- 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
setDefault
Parameters
Optional timezone: string
zonesForCountry
- 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
Parameters
country: string
with_offset: T
Returns T extends true ? MomentZoneOffset[] : never
Type Parameters
Parameters
country: string
Optional with_offset: T
Returns T extends false ? string[] : never
Parameters
country: string
Optional with_offset: boolean