Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(164)

Side by Side Diff: lib/i18n/date_symbols.dart

Issue 10807096: Add date formatting and parsing code. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 #library("date_format_for_locale");
2
3 /**
4 * This holds onto information about how a particular locale formats dates. It
5 * contains mostly strings, e.g. what the names of months or weekdays are,
6 * but also indicates things like the first day of the week. We expect the data
7 * for instances of these to be generated out of ICU or a similar reference
8 * source. This is used in conjunction with the date_time_patterns, which
9 * defines for a particular locale the different named formats that will
10 * make use of this data.
11 */
12 class DateSymbols {
13 final String NAME;
14 final List<String> ERAS,ERANAMES,NARROWMONTHS,STANDALONENARROWMONTHS, MONTHS,
15 STANDALONEMONTHS, SHORTMONTHS, STANDALONESHORTMONTHS, WEEKDAYS,
16 STANDALONEWEEKDAYS, SHORTWEEKDAYS, STANDALONESHORTWEEKDAYS,
17 NARROWWEEKDAYS, STANDALONENARROWWEEKDAYS, SHORTQUARTERS,
18 QUARTERS, AMPMS, DATEFORMATS, TIMEFORMATS;
19 final Map<String,String> AVAILABLEFORMATS;
20 final int FIRSTDAYOFWEEK;
21 final List<int> WEEKENDRANGE;
22 final int FIRSTWEEKCUTOFFDAY;
23
24 const DateSymbols([this.NAME,
25 this.ERAS,
Emily Fortuna 2012/08/06 22:43:00 indentation?
Alan Knight 2012/08/08 00:47:44 Done.
26 this.ERANAMES,
27 this.NARROWMONTHS,
28 this.STANDALONENARROWMONTHS,
29 this.MONTHS,
30 this.STANDALONEMONTHS,
31 this.SHORTMONTHS,
32 this.STANDALONESHORTMONTHS,
33 this.WEEKDAYS,
34 this.STANDALONEWEEKDAYS,
35 this.SHORTWEEKDAYS,
36 this.STANDALONESHORTWEEKDAYS,
37 this.NARROWWEEKDAYS,
38 this.STANDALONENARROWWEEKDAYS,
39 this.SHORTQUARTERS,
40 this.QUARTERS,
41 this.AMPMS,
42 this.DATEFORMATS,
43 this.TIMEFORMATS,
44 this.AVAILABLEFORMATS,
45 this.FIRSTDAYOFWEEK,
46 this.WEEKENDRANGE,
47 this.FIRSTWEEKCUTOFFDAY]);
48
49 toString() => NAME;
50 }
51
Emily Fortuna 2012/08/06 22:43:00 extra newline
Alan Knight 2012/08/08 00:47:44 Done.
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698