OLD | NEW |
1 part of intl; | |
2 | |
3 // 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 |
4 // 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 |
5 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
6 | 4 |
7 /** | 5 /** |
8 * DateFormat is for formatting and parsing dates in a locale-sensitive | 6 * DateFormat is for formatting and parsing dates in a locale-sensitive |
9 * manner. | 7 * manner. |
10 * It allows the user to choose from a set of standard date time formats as well | 8 * It allows the user to choose from a set of standard date time formats as well |
11 * as specify a customized pattern under certain locales. Date elements that | 9 * as specify a customized pattern under certain locales. Date elements that |
12 * vary across locales include month name, week name, field order, etc. | 10 * vary across locales include month name, week name, field order, etc. |
(...skipping 548 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
561 List _reverse(List list) { | 559 List _reverse(List list) { |
562 // TODO(alanknight): Use standardized list reverse when implemented. | 560 // TODO(alanknight): Use standardized list reverse when implemented. |
563 // See Issue 2804. | 561 // See Issue 2804. |
564 var result = new List(); | 562 var result = new List(); |
565 for (var i = list.length-1; i >= 0; i--) { | 563 for (var i = list.length-1; i >= 0; i--) { |
566 result.addLast(list[i]); | 564 result.addLast(list[i]); |
567 } | 565 } |
568 return result; | 566 return result; |
569 } | 567 } |
570 } | 568 } |
OLD | NEW |