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

Unified Diff: runtime/bin/file_impl.dart

Issue 10538105: Make isUtc a getter, change some method names in Date. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address comments. Created 8 years, 6 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 | « lib/math/random.dart ('k') | runtime/bin/http_utils.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/file_impl.dart
diff --git a/runtime/bin/file_impl.dart b/runtime/bin/file_impl.dart
index d53c35be6d5a9996a7e7d6db3417a939126ba5c2..7900aef3586b6e35230033b015436d82b4db1c77 100644
--- a/runtime/bin/file_impl.dart
+++ b/runtime/bin/file_impl.dart
@@ -619,12 +619,13 @@ class _File extends _FileBase implements File {
"Cannot retrieve modification time "
"for file '$_name'");
}
- return new Date.fromEpoch(response);
+ return new Date.fromMillisecondsSinceEpoch(response);
});
}
Date lastModifiedSync() {
- return new Date.fromEpoch(_FileUtils.checkedLastModified(_name));
+ int ms = _FileUtils.checkedLastModified(_name);
+ return new Date.fromMillisecondsSinceEpoch(ms);
}
RandomAccessFile openSync([FileMode mode = FileMode.READ]) {
« no previous file with comments | « lib/math/random.dart ('k') | runtime/bin/http_utils.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698