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

Unified Diff: samples/swarm/swarm_ui_lib/touch/TimeUtil.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
Index: samples/swarm/swarm_ui_lib/touch/TimeUtil.dart
diff --git a/samples/swarm/swarm_ui_lib/touch/TimeUtil.dart b/samples/swarm/swarm_ui_lib/touch/TimeUtil.dart
index dcf495263ad73719653ebcb47af72991d02d5c4e..4287f6dce8352a99c317cdcae9c5461782d94a45 100644
--- a/samples/swarm/swarm_ui_lib/touch/TimeUtil.dart
+++ b/samples/swarm/swarm_ui_lib/touch/TimeUtil.dart
@@ -11,6 +11,6 @@ part of touch;
*/
class TimeUtil {
static int now() {
- return new Date.now().millisecondsSinceEpoch;
+ return new DateTime.now().millisecondsSinceEpoch;
}
}
« no previous file with comments | « samples/swarm/swarm_ui_lib/base/AnimationScheduler.dart ('k') | samples/swarm/swarm_ui_lib/util/DateUtils.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698