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); |