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

Unified Diff: sdk/lib/io/timer_impl.dart

Issue 11770004: Rename Date to DateTime. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address comments and keep Backwards-compatibility class Date. Created 7 years, 11 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 | « sdk/lib/io/secure_socket.dart ('k') | tests/compiler/dart2js_extra/mirror_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/io/timer_impl.dart
diff --git a/sdk/lib/io/timer_impl.dart b/sdk/lib/io/timer_impl.dart
index b1e4d421570541b30575df63cc0ffc049489b66a..415c108957b5a322f850124837efec48023c3073 100644
--- a/sdk/lib/io/timer_impl.dart
+++ b/sdk/lib/io/timer_impl.dart
@@ -21,7 +21,7 @@ class _Timer implements Timer {
Timer timer = new _Timer._internal();
timer._callback = callback;
timer._milliSeconds = milliSeconds;
- timer._wakeupTime = (new Date.now()).millisecondsSinceEpoch + milliSeconds;
+ timer._wakeupTime = (new DateTime.now()).millisecondsSinceEpoch + milliSeconds;
timer._repeating = repeating;
timer._addTimerToList();
timer._notifyEventHandler();
@@ -123,7 +123,7 @@ class _Timer implements Timer {
void _handleTimeout() {
int currentTime =
- (new Date.now()).millisecondsSinceEpoch + _TIMER_JITTER;
+ (new DateTime.now()).millisecondsSinceEpoch + _TIMER_JITTER;
// Collect all pending timers.
DoubleLinkedQueueEntry<_Timer> entry = _timers.firstEntry();
« no previous file with comments | « sdk/lib/io/secure_socket.dart ('k') | tests/compiler/dart2js_extra/mirror_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698