W3C home > Mailing lists > Public > whatwg@whatwg.org > February 2014

Re: [whatwg] <input type=number> for year input

From: Karl Dubost <karl@la-grange.net>
Date: Wed, 19 Feb 2014 10:24:29 +0900
Message-Id: <8241CCA5-F424-4A15-8D27-93762946AA65@la-grange.net>
To: Ian Hickson <ian@hixie.ch>
Cc: whatwg <whatwg@lists.whatwg.org>, Jonathan Watt <jwatt@jwatt.org>

Le 19 févr. 2014 à 08:17, Ian Hickson <ian@hixie.ch> a écrit :
> It doesn't help that much for four-digit numbers, and 
> years beyond four digits often _do_ have commas, e.g.:
> 
>   http://en.wikipedia.org/wiki/Year_10,000_problem

In English.
The same page you used:
西暦10000年問題
Problema del año 10000
Y10K
10000년 문제
Проблема 10000 года
Проблема 10000 року
10000年问题

For example, the comma in France is used for "10,5" as in 10.5 (21/2).
And the space is used as a separator 11 222 333,44

A good source for different conventions depending on the locales.
http://fr.wikipedia.org/wiki/Wikip%C3%A9dia:Conventions_concernant_les_nombres
http://en.wikipedia.org/wiki/Wikipedia:Manual_of_Style/Dates_and_numbers
http://de.wikipedia.org/wiki/Wikipedia:Schreibweise_von_Zahlen
http://zh.wikipedia.org/wiki/Wikipedia:%E6%A0%BC%E5%BC%8F%E6%89%8B%E5%86%8C/%E6%97%A5%E6%9C%9F%E5%92%8C%E6%95%B0%E5%AD%97

etc.

I wonder if it would not be more flexible to have a `format` attribute.

    <input type="number" format="%Y"/>
(or any other formatting syntax)

-- 
Karl Dubost 🐄
http://www.la-grange.net/karl/
Received on Wednesday, 19 February 2014 01:25:04 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 17:00:16 UTC