Comments (5)
Currently it is defined as "of those in common use in region."
I am not sure do we need to be more specific than that. Do you have any specific suggestion of how to specify?
from proposal-intl-locale-info.
The current specification requires that the array returned from TimeZonesOfLocale
has at least one element. Should implementations just make up the most commonly used time zone when no actual data is present?
For example here's what V8 returns for the specific cases mentioned above:
d8> new Intl.Locale("und-ZX").timeZones
[]
d8> new Intl.Locale("und-ZZ").timeZones
[]
d8> new Intl.Locale("und-019").timeZones
[]
This is clearly not compliant to the current specification, because the returned array has zero elements, but at least one element is required to be returned.
from proposal-intl-locale-info.
hum... make sense
should we change
"Let list be a List of 1 or more unique time zone identifiers,"
to
"Let list be a List of 0 or more unique time zone identifiers," ?
from proposal-intl-locale-info.
Let list be a List of 0 or more unique time zone identifiers, [...], of those in common use in region.
"0 or more" reads a bit strange to me when we want to express the list can have any number of elements.
What about something along the lines of:
Let list be a List of unique time zone identifiers, [...], of those in common use in region. If no time zones are commonly used in region, let list be a new empty List.
This way we explicitly say under which conditions the list can be empty.
from proposal-intl-locale-info.
Should implementations just make up the most commonly used time zone when no actual data is present?
How about GMT?
from proposal-intl-locale-info.
Related Issues (20)
- Missing standard preamble for abstract operations HOT 1
- Change CharacterDirectionOfLocale and WeekInfoOfLocale to receive an Intl.Locale object? HOT 1
- CreateArrayFromListOrRestricted can be simplified HOT 1
- Canonicalise time zones in TimeZonesOfLocale
- [[Weekend]] ordering HOT 2
- CharacterDirectionOfLocale doesn't handle top-to-bottom and bottom-to-top scripts HOT 1
- CharacterDirectionOfLocale doesn't take script and region subtags into account HOT 1
- Intl.Locale.prototype.textInfo is missing "lineOrder" information HOT 1
- "direction" property in Intl.Locale.prototype.textInfo is possibly ambiguous HOT 2
- textInfo.direction is a very simplified model of reality HOT 19
- The textInfo getter seems unwell HOT 5
- Reverse date creation HOT 1
- Add support for -u-fw and other Unicode extensions that could impact the result HOT 12
- `.getTimezones()` seems problematic HOT 3
- Consistent "region" subtag requirements for getTimeZones() and getWeekInfo()/getHourCycles() HOT 8
- Tc39 HOT 1
- Possible of addition of Intl.Locale.prototype.getCurrencies()? HOT 1
- Define fallback behaviour in {Calendars,Collations,HourCycles,NumberingSystems,CharacterDirection,WeekInfo}OfLocale HOT 6
- Locale with -u-fw- value other than 13 value will cause assertion HOT 14
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from proposal-intl-locale-info.