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

Unified Diff: pkg/logging/lib/logging.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 | « pkg/intl/test/date_time_format_test_core.dart ('k') | pkg/oauth2/lib/src/authorization_code_grant.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/logging/lib/logging.dart
diff --git a/pkg/logging/lib/logging.dart b/pkg/logging/lib/logging.dart
index 3713175d4a78c7c4fc4169029bb12a37ee16a406..5e0a23950faf3cd7d1ffeb31ca01b4e335f51138 100644
--- a/pkg/logging/lib/logging.dart
+++ b/pkg/logging/lib/logging.dart
@@ -313,7 +313,7 @@ class LogRecord {
final String loggerName;
/** Time when this record was created. */
- final Date time;
+ final DateTime time;
/** Unique sequence number greater than all log records created before it. */
final int sequenceNumber;
@@ -329,6 +329,6 @@ class LogRecord {
LogRecord(
this.level, this.message, this.loggerName,
[time, this.exception, this.exceptionText]) :
- this.time = (time == null) ? new Date.now() : time,
+ this.time = (time == null) ? new DateTime.now() : time,
this.sequenceNumber = LogRecord._nextNumber++;
}
« no previous file with comments | « pkg/intl/test/date_time_format_test_core.dart ('k') | pkg/oauth2/lib/src/authorization_code_grant.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698