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

Unified Diff: samples/swarm/DataSource.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/solar3d/web/solar.dart ('k') | samples/swarm/swarm_ui_lib/base/AnimationScheduler.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: samples/swarm/DataSource.dart
diff --git a/samples/swarm/DataSource.dart b/samples/swarm/DataSource.dart
index 6bda0f598c13d8965fb209706c49450854fb7f17..df9d3efdc08e5d3b521dc4d0367f5124ab976978 100644
--- a/samples/swarm/DataSource.dart
+++ b/samples/swarm/DataSource.dart
@@ -168,7 +168,7 @@ class Feed {
/** A single article or posting to display. */
class Article {
final String id;
- Date date;
+ DateTime date;
final String title;
final String author;
final bool hasThumbnail;
@@ -237,7 +237,7 @@ class Article {
final dateInSeconds = decoder.readInt();
final snippet = decoder.readString();
final date =
- new Date.fromMillisecondsSinceEpoch(dateInSeconds*1000, isUtc: true);
+ new DateTime.fromMillisecondsSinceEpoch(dateInSeconds*1000, isUtc: true);
return new Article(source, id, date, title, author, srcUrl, hasThumbnail,
snippet);
}
« no previous file with comments | « samples/solar3d/web/solar.dart ('k') | samples/swarm/swarm_ui_lib/base/AnimationScheduler.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698