- tz(): Moment
- tz(timezone): Moment
- tz(date, timezone): Moment
Parameters
date: number
timezone: string
- tz(date, timezone): Moment
Parameters
date: number[]
timezone: string
- tz(date, timezone): Moment
Parameters
date: string
timezone: string
- tz(date, format, timezone): Moment
Parameters
date: string
timezone: string
- tz(date, format, strict, timezone): Moment
Parameters
date: string
strict: boolean
timezone: string
- tz(date, format, language, timezone): Moment
Parameters
date: string
language: string
timezone: string
- tz(date, format, language, strict, timezone): Moment
Parameters
date: string
language: string
strict: boolean
timezone: string
- tz(date, timezone): Moment
Parameters
date: Date
timezone: string
- tz(date, timezone): Moment
- tz(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