| OLD | NEW |
| 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, 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 // Dart core library. | 5 // Dart core library. |
| 6 | 6 |
| 7 class DurationImplementation implements Duration { | 7 class DurationImplementation implements Duration { |
| 8 final int inMilliseconds; | 8 final int inMilliseconds; |
| 9 | 9 |
| 10 const DurationImplementation([int days = 0, | 10 const DurationImplementation([int days = 0, |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 } | 65 } |
| 66 String twoDigitMinutes = | 66 String twoDigitMinutes = |
| 67 twoDigits(inMinutes.remainder(Duration.MINUTES_PER_HOUR)); | 67 twoDigits(inMinutes.remainder(Duration.MINUTES_PER_HOUR)); |
| 68 String twoDigitSeconds = | 68 String twoDigitSeconds = |
| 69 twoDigits(inSeconds.remainder(Duration.SECONDS_PER_MINUTE)); | 69 twoDigits(inSeconds.remainder(Duration.SECONDS_PER_MINUTE)); |
| 70 String threeDigitMs = | 70 String threeDigitMs = |
| 71 threeDigits(inMilliseconds.remainder(Duration.MILLISECONDS_PER_SECOND)); | 71 threeDigits(inMilliseconds.remainder(Duration.MILLISECONDS_PER_SECOND)); |
| 72 return "${inHours}:${twoDigitMinutes}:${twoDigitSeconds}.${threeDigitMs}"; | 72 return "${inHours}:${twoDigitMinutes}:${twoDigitSeconds}.${threeDigitMs}"; |
| 73 } | 73 } |
| 74 } | 74 } |
| OLD | NEW |