| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 class DateImplementation implements Date { | 5 class DateImplementation implements Date { |
| 6 final int millisecondsSinceEpoch; | 6 final int millisecondsSinceEpoch; |
| 7 final bool isUtc; | 7 final bool isUtc; |
| 8 | 8 |
| 9 factory DateImplementation.fromString(String formattedString) { | 9 factory DateImplementation.fromString(String formattedString) { |
| 10 // Read in (a subset of) ISO 8601. | 10 // Read in (a subset of) ISO 8601. |
| (...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 164 int day, | 164 int day, |
| 165 int hour, | 165 int hour, |
| 166 int minute, | 166 int minute, |
| 167 int second, | 167 int second, |
| 168 int millisecond, | 168 int millisecond, |
| 169 bool isUtc]); | 169 bool isUtc]); |
| 170 external DateImplementation.now(); | 170 external DateImplementation.now(); |
| 171 external static int _brokenDownDateToMillisecondsSinceEpoch( | 171 external static int _brokenDownDateToMillisecondsSinceEpoch( |
| 172 int years, int month, int day, int hour, int minute, int second, | 172 int years, int month, int day, int hour, int minute, int second, |
| 173 int millisecond, bool isUtc); | 173 int millisecond, bool isUtc); |
| 174 external String get timeZoneName(); | 174 external String get timeZoneName; |
| 175 external Duration get timeZoneOffset(); | 175 external Duration get timeZoneOffset; |
| 176 external int get year(); | 176 external int get year; |
| 177 external int get month(); | 177 external int get month; |
| 178 external int get day(); | 178 external int get day; |
| 179 external int get hour(); | 179 external int get hour; |
| 180 external int get minute(); | 180 external int get minute; |
| 181 external int get second(); | 181 external int get second; |
| 182 external int get millisecond(); | 182 external int get millisecond; |
| 183 external int get weekday(); | 183 external int get weekday; |
| 184 } | 184 } |
| OLD | NEW |