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

Unified Diff: editor/util/debuggertest/pets.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: editor/util/debuggertest/pets.dart
diff --git a/editor/util/debuggertest/pets.dart b/editor/util/debuggertest/pets.dart
index 61a932c0df94225756b5241ec51e27805392e6b3..f169f9f17fbea9740497604b2c4b3ce709392b90 100644
--- a/editor/util/debuggertest/pets.dart
+++ b/editor/util/debuggertest/pets.dart
@@ -100,16 +100,16 @@ class Dog extends FloppyEars implements Animal {
int fleaCount;
- Date bornOn;
+ DateTime bornOn;
Dog(this.name) {
var rand = new Random();
fleaCount = rand.nextInt(10);
- bornOn = new Date.now();
+ bornOn = new DateTime.now();
}
Dog.withFleas(this.name, this.fleaCount) {
- bornOn = new Date.now();
+ bornOn = new DateTime.now();
}
bool livesWith(Animal other) => true;

Powered by Google App Engine
This is Rietveld 408576698