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

Unified Diff: pkg/intl/lib/src/date_format_helpers.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/src/date_format_field.dart ('k') | pkg/intl/test/date_time_format_test_core.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/intl/lib/src/date_format_helpers.dart
diff --git a/pkg/intl/lib/src/date_format_helpers.dart b/pkg/intl/lib/src/date_format_helpers.dart
index e47c2cb7bda7ef31ce9c52ea330d5b7ba5facf33..a10b27462c71eb46b378e6af587da0623f967fee 100644
--- a/pkg/intl/lib/src/date_format_helpers.dart
+++ b/pkg/intl/lib/src/date_format_helpers.dart
@@ -36,11 +36,11 @@ class _DateBuilder {
* Return a date built using our values. If no date portion is set,
* use the "Epoch" of January 1, 1970.
*/
- Date asDate() {
+ DateTime asDate() {
// TODO(alanknight): Validate the date, especially for things which
// can crash the VM, e.g. large month values.
if (utc) {
- return new Date.utc(
+ return new DateTime.utc(
year,
month,
day,
@@ -49,7 +49,7 @@ class _DateBuilder {
second,
fractionalSecond);
} else {
- return new Date(
+ return new DateTime(
year,
month,
day,
« no previous file with comments | « pkg/intl/lib/src/date_format_field.dart ('k') | pkg/intl/test/date_time_format_test_core.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698