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 import "package:expect/expect.dart"; | 5 import "package:expect/expect.dart"; |
6 | 6 |
7 // Test fromString with 6 digits after the decimal point. | 7 // Test fromString with 6 digits after the decimal point. |
8 | 8 |
9 bool get supportsMicroseconds => | 9 bool get supportsMicroseconds => |
10 new DateTime.fromMicrosecondsSinceEpoch(1).microsecondsSinceEpoch == 1; | 10 new DateTime.fromMicrosecondsSinceEpoch(1).microsecondsSinceEpoch == 1; |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
95 Expect.equals(2012, dt1.year); | 95 Expect.equals(2012, dt1.year); |
96 Expect.equals(3, dt1.month); | 96 Expect.equals(3, dt1.month); |
97 Expect.equals(30, dt1.day); | 97 Expect.equals(30, dt1.day); |
98 Expect.equals(4, dt1.hour); | 98 Expect.equals(4, dt1.hour); |
99 Expect.equals(28, dt1.minute); | 99 Expect.equals(28, dt1.minute); |
100 Expect.equals(13, dt1.second); | 100 Expect.equals(13, dt1.second); |
101 Expect.equals(752, dt1.millisecond); | 101 Expect.equals(752, dt1.millisecond); |
102 Expect.equals(341, dt1.microsecond); | 102 Expect.equals(341, dt1.microsecond); |
103 Expect.equals(true, dt1.isUtc); | 103 Expect.equals(true, dt1.isUtc); |
104 } | 104 } |
OLD | NEW |