| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 /** | 5 /** |
| 6 * Represents a span of time from [endTime, startTime). | 6 * Represents a span of time from [endTime, startTime). |
| 7 * | 7 * |
| 8 * (Note that startTime is more recent than endTime). | 8 * (Note that startTime is more recent than endTime). |
| 9 * | 9 * |
| 10 * @param {int} startTime Unix timestamp in milliseconds. | 10 * @param {int} startTime Unix timestamp in milliseconds. |
| (...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 271 /** | 271 /** |
| 272 * Helper function to add required zero characters to a string. | 272 * Helper function to add required zero characters to a string. |
| 273 **/ | 273 **/ |
| 274 function zeroPad(num, width) { | 274 function zeroPad(num, width) { |
| 275 num = num.toString(); | 275 num = num.toString(); |
| 276 while (num.length < width) { | 276 while (num.length < width) { |
| 277 num = "0" + num; | 277 num = "0" + num; |
| 278 } | 278 } |
| 279 return num; | 279 return num; |
| 280 } | 280 } |
| OLD | NEW |