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

Unified Diff: pkg/intl/lib/src/date_format_field.dart

Issue 11748016: Make ~/, round, ceil, floor, truncate return ints. Remove toInt. (Closed) Base URL: https://dart.googlecode.com/svn/experimental/lib_v2/dart
Patch Set: Checked mode fixes. Created 7 years, 12 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
Index: pkg/intl/lib/src/date_format_field.dart
diff --git a/pkg/intl/lib/src/date_format_field.dart b/pkg/intl/lib/src/date_format_field.dart
index 7e210a3b3c13e1e5472f0ec695e6218120f1d128..1cf58cc481a729582911a199a2f8733de75495ab 100644
--- a/pkg/intl/lib/src/date_format_field.dart
+++ b/pkg/intl/lib/src/date_format_field.dart
@@ -345,7 +345,7 @@ class _DateFormatPatternField extends _DateFormatField {
}
String formatQuarter(Date date) {
- var quarter = (date.month / 3).truncate().toInt();
+ var quarter = (date.month / 3).truncate();
if (width < 4) {
return symbols.SHORTQUARTERS[quarter];
} else {

Powered by Google App Engine
This is Rietveld 408576698