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

Unified Diff: samples/clock/web/clock.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 | « samples/clock/web/balls.dart ('k') | samples/solar/web/solar.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: samples/clock/web/clock.dart
diff --git a/samples/clock/web/clock.dart b/samples/clock/web/clock.dart
index 9a90c2e0b731655b2c37340cd2815f3a6cca3c3b..ebf3dc957819ef27c5a5bd059151548dbfd9c232 100644
--- a/samples/clock/web/clock.dart
+++ b/samples/clock/web/clock.dart
@@ -47,18 +47,18 @@ class CountDownClock {
createNumbers(parent, parent.clientWidth, parent.clientHeight);
- updateTime(new Date.now());
+ updateTime(new DateTime.now());
window.requestAnimationFrame(tick);
}
void tick(num time) {
- updateTime(new Date.now());
+ updateTime(new DateTime.now());
balls.tick(time);
window.requestAnimationFrame(tick);
}
- void updateTime(Date now) {
+ void updateTime(DateTime now) {
if (now.hour != displayedHour) {
setDigits(pad2(now.hour), hours);
displayedHour = now.hour;
« no previous file with comments | « samples/clock/web/balls.dart ('k') | samples/solar/web/solar.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698