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

Unified Diff: samples/ui_lib/util/DateUtils.dart

Issue 10905255: Change Duration to take proper named optional parameters. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 3 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
« runtime/lib/date_patch.dart ('K') | « runtime/lib/date_patch.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: samples/ui_lib/util/DateUtils.dart
diff --git a/samples/ui_lib/util/DateUtils.dart b/samples/ui_lib/util/DateUtils.dart
index 6687e61d046d5429b43d001ecd72c0c4cd2f880c..4116d690f9b6742dd568e5af5d412f583498f9cc 100644
--- a/samples/ui_lib/util/DateUtils.dart
+++ b/samples/ui_lib/util/DateUtils.dart
@@ -123,7 +123,11 @@ class DateUtils {
final now = new Date.now();
if (datesAreEqual(then, now)) {
return toHourMinutesString(new Duration(
- 0, then.hour, then.minute, then.second, then.millisecond));
+ days: 0,
+ hours: then.hour,
+ minutes: then.minute,
+ seconds: then.second,
+ milliseconds: then.millisecond));
}
final today = new Date(now.year, now.month, now.day, 0, 0, 0, 0);
« runtime/lib/date_patch.dart ('K') | « runtime/lib/date_patch.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698