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

Unified Diff: samples/total/client/DateTimeUtils.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 | « samples/third_party/dromaeo/tests/RunnerSuite.dart ('k') | samples/total/client/Formats.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: samples/total/client/DateTimeUtils.dart
diff --git a/samples/total/client/DateTimeUtils.dart b/samples/total/client/DateTimeUtils.dart
index bbbc37f1e88356764727016aa71e25ccac38b118..4a2dfee670604fc1b29a2c3990b420804f66cde8 100644
--- a/samples/total/client/DateTimeUtils.dart
+++ b/samples/total/client/DateTimeUtils.dart
@@ -27,7 +27,7 @@ class DateUtils {
static Date getDateTime(double daysSince18991230) {
double daysSinceEpoch = daysSince18991230 - DAYS_FROM_1900_TO_1970;
int millisSinceEpoch = (daysSinceEpoch * MILLISECONDS_PER_DAY).toInt();
- return new Date.fromEpoch(millisSinceEpoch, isUtc: true);
+ return new Date.fromMillisecondsSinceEpoch(millisSinceEpoch, isUtc: true);
}
static double getTime(int hour, int minute, int second) {
« no previous file with comments | « samples/third_party/dromaeo/tests/RunnerSuite.dart ('k') | samples/total/client/Formats.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698