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

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

Issue 11770004: Rename Date to DateTime. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address comments and keep Backwards-compatibility class Date. Created 7 years, 11 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 | « pkg/intl/lib/date_format.dart ('k') | pkg/intl/lib/src/date_format_field.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/intl/lib/intl.dart
diff --git a/pkg/intl/lib/intl.dart b/pkg/intl/lib/intl.dart
index 9214b662a3a5cc84120163b9c86683feda9946b5..18af6a7fcf8bd72913f8d274d118903d5e3e86b7 100644
--- a/pkg/intl/lib/intl.dart
+++ b/pkg/intl/lib/intl.dart
@@ -45,7 +45,7 @@ part 'bidi_utils.dart';
* "Today's date is $date",
* desc: 'Indicate the current date',
* examples: {'date' : 'June 8, 2012'});
- * print(today(new Date.now());
+ * print(today(new DateTime.now());
*
* msg({num_people, place}) => Intl.message(
* '''I see ${Intl.plural(num_people,
@@ -59,7 +59,7 @@ part 'bidi_utils.dart';
* produce "I see 2 other people in Athens." as output in the default locale.
*
* To use a locale other than the default, use the `withLocale` function.
- * var todayString = new DateFormat("pt_BR").format(new Date.now());
+ * var todayString = new DateFormat("pt_BR").format(new DateTime.now());
* print(withLocale("pt_BR", () => today(todayString));
*
* See `tests/message_format_test.dart` for more examples.
« no previous file with comments | « pkg/intl/lib/date_format.dart ('k') | pkg/intl/lib/src/date_format_field.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698