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

Unified Diff: runtime/lib/date_patch.dart

Issue 22685007: Implement updated method overriding rules in the vm. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 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 | « runtime/lib/collection_patch.dart ('k') | runtime/lib/expando_patch.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/lib/date_patch.dart
===================================================================
--- runtime/lib/date_patch.dart (revision 26025)
+++ runtime/lib/date_patch.dart (working copy)
@@ -190,7 +190,7 @@
((y.remainder(100) != 0) || (y.remainder(400) == 0));
}
- static _brokenDownDateToMillisecondsSinceEpoch(
+ /* patch */ static int _brokenDownDateToMillisecondsSinceEpoch(
int year, int month, int day,
int hour, int minute, int second, int millisecond,
bool isUtc) {
@@ -249,7 +249,7 @@
* Leap seconds are ignored.
* Adapted from V8's date implementation. See ECMA 262 - 15.9.1.9.
*/
- static _equivalentYear(int year) {
+ static int _equivalentYear(int year) {
// Returns the week day (in range 0 - 6).
// 1/1/1956 was a Sunday (i.e. weekday 0). 1956 was a leap-year.
// 1/1/1967 was a Sunday (i.e. weekday 0).
« no previous file with comments | « runtime/lib/collection_patch.dart ('k') | runtime/lib/expando_patch.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698