TimeZoneInfo
Information about a time zone.
Syntax
object { id, city }
Properties
id: TimeZoneType
- Time zone identifier
city: ExemplarCity
- Info about the time zone's exemplar city
Example
const en = framework.get('en');
const ids = en.Calendars.timeZoneIds();
for (const id of ids.slice(0, 10)) {
const info = en.Calendars.timeZoneInfo(id);
log(info);
}
log('...');
{ id: 'Africa/Abidjan', city: { name: 'Abidjan' } } { id: 'Africa/Accra', city: { name: 'Accra' } } { id: 'Africa/Algiers', city: { name: 'Algiers' } } { id: 'Africa/Bissau', city: { name: 'Bissau' } } { id: 'Africa/Cairo', city: { name: 'Cairo' } } { id: 'Africa/Casablanca', city: { name: 'Casablanca' } } { id: 'Africa/Ceuta', city: { name: 'Ceuta' } } { id: 'Africa/El_Aaiun', city: { name: 'El Aaiun' } } { id: 'Africa/Johannesburg', city: { name: 'Johannesburg' } } { id: 'Africa/Juba', city: { name: 'Juba' } } ...