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

Unified 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « lib/i18n/date_symbol_data.dart ('k') | lib/i18n/date_time_patterns.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/i18n/date_symbols.dart
===================================================================
--- lib/i18n/date_symbols.dart (revision 0)
+++ lib/i18n/date_symbols.dart (revision 0)
@@ -0,0 +1,53 @@
+// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
+// for details. All rights reserved. Use of this source code is governed by a
+// BSD-style license that can be found in the LICENSE file.
+#library("date_symbols");
+
+/**
+ * This holds onto information about how a particular locale formats dates. It
+ * contains mostly strings, e.g. what the names of months or weekdays are,
+ * but also indicates things like the first day of the week. We expect the data
+ * for instances of these to be generated out of ICU or a similar reference
+ * source. This is used in conjunction with the date_time_patterns, which
+ * defines for a particular locale the different named formats that will
+ * make use of this data.
+ */
+class DateSymbols {
+ final String NAME;
+ final List<String> ERAS, ERANAMES, NARROWMONTHS, STANDALONENARROWMONTHS,
+ MONTHS, STANDALONEMONTHS, SHORTMONTHS, STANDALONESHORTMONTHS, WEEKDAYS,
+ STANDALONEWEEKDAYS, SHORTWEEKDAYS, STANDALONESHORTWEEKDAYS,
+ NARROWWEEKDAYS, STANDALONENARROWWEEKDAYS, SHORTQUARTERS,
+ QUARTERS, AMPMS, DATEFORMATS, TIMEFORMATS;
+ final Map<String, String> AVAILABLEFORMATS;
+ final int FIRSTDAYOFWEEK;
+ final List<int> WEEKENDRANGE;
+ final int FIRSTWEEKCUTOFFDAY;
+
+ const DateSymbols([this.NAME,
+ this.ERAS,
+ this.ERANAMES,
+ this.NARROWMONTHS,
+ this.STANDALONENARROWMONTHS,
+ this.MONTHS,
+ this.STANDALONEMONTHS,
+ this.SHORTMONTHS,
+ this.STANDALONESHORTMONTHS,
+ this.WEEKDAYS,
+ this.STANDALONEWEEKDAYS,
+ this.SHORTWEEKDAYS,
+ this.STANDALONESHORTWEEKDAYS,
+ this.NARROWWEEKDAYS,
+ this.STANDALONENARROWWEEKDAYS,
+ this.SHORTQUARTERS,
+ this.QUARTERS,
+ this.AMPMS,
+ this.DATEFORMATS,
+ this.TIMEFORMATS,
+ this.AVAILABLEFORMATS,
+ this.FIRSTDAYOFWEEK,
+ this.WEEKENDRANGE,
+ this.FIRSTWEEKCUTOFFDAY]);
+
+ toString() => NAME;
+}
« no previous file with comments | « lib/i18n/date_symbol_data.dart ('k') | lib/i18n/date_time_patterns.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698