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

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: 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
Index: sdk/lib/core/date_time.dart
diff --git a/sdk/lib/core/date_time.dart b/sdk/lib/core/date_time.dart
index f98c009ef3848f6b13721bffd525f35c98448f28..b34bde1785f23ce66caf7d7a4404ee67afb0b061 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

Powered by Google App Engine
This is Rietveld 408576698