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

Unified Diff: sdk/lib/core/date_time.dart

Issue 14065003: Rename DAYS_IN_WEEK to DAYS_PER_WEEK. Add MONTHS_PER_YEAR. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address comment. Created 7 years, 8 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 | « samples/swarm/swarm_ui_lib/util/DateUtils.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/core/date_time.dart
diff --git a/sdk/lib/core/date_time.dart b/sdk/lib/core/date_time.dart
index 9902b8241081ef8918987e92048276c015cb55ec..31daa8f99aec01fdc75aa7a89d3a56baa50634f8 100644
--- a/sdk/lib/core/date_time.dart
+++ b/sdk/lib/core/date_time.dart
@@ -22,7 +22,7 @@ class DateTime {
static const int FRIDAY = 5;
static const int SATURDAY = 6;
static const int SUNDAY = 7;
- static const int DAYS_IN_WEEK = 7;
+ static const int DAYS_PER_WEEK = 7;
// Month constants that are returned by the [month] getter.
static const int JANUARY = 1;
@@ -37,6 +37,7 @@ class DateTime {
static const int OCTOBER = 10;
static const int NOVEMBER = 11;
static const int DECEMBER = 12;
+ static const int MONTHS_PER_YEAR = 12;
/**
* The milliseconds since 1970-01-01T00:00:00Z (UTC). This value is
« no previous file with comments | « samples/swarm/swarm_ui_lib/util/DateUtils.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698