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

Unified Diff: sdk/lib/io/file_impl.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 | « sdk/lib/io/file.dart ('k') | sdk/lib/io/http.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/io/file_impl.dart
diff --git a/sdk/lib/io/file_impl.dart b/sdk/lib/io/file_impl.dart
index b46a8dcd687d605d81aec4e87554782b2a7b0708..e47029f3b25623aba079789ecb6d40e2a9d2d333 100644
--- a/sdk/lib/io/file_impl.dart
+++ b/sdk/lib/io/file_impl.dart
@@ -485,7 +485,7 @@ class _File extends _FileBase implements File {
return result;
}
- Future<Date> lastModified() {
+ Future<DateTime> lastModified() {
_ensureFileService();
List request = new List.fixedLength(2);
request[0] = _LAST_MODIFIED_REQUEST;
@@ -496,16 +496,16 @@ class _File extends _FileBase implements File {
"Cannot retrieve modification time "
"for file '$_name'");
}
- return new Date.fromMillisecondsSinceEpoch(response);
+ return new DateTime.fromMillisecondsSinceEpoch(response);
});
}
external static _lastModified(String name);
- Date lastModifiedSync() {
+ DateTime lastModifiedSync() {
var ms = _lastModified(name);
throwIfError(ms, "Cannot retrieve modification time for file '$_name'");
- return new Date.fromMillisecondsSinceEpoch(ms);
+ return new DateTime.fromMillisecondsSinceEpoch(ms);
}
external static _open(String name, int mode);
« no previous file with comments | « sdk/lib/io/file.dart ('k') | sdk/lib/io/http.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698