commit | f9a80cbbfe5585772ea16fddfeb728c74bc04b2d | [log] [tgz] |
---|---|---|
author | Mitchell Wills <mwills@google.com> | Tue Sep 22 15:30:08 2015 -0700 |
committer | Mitchell Wills <mwills@google.com> | Tue Sep 22 15:42:16 2015 -0700 |
tree | 36838bf7852765a35c01bfaa5a7e7305e3326881 | |
parent | d548da799117a4b34ccfa57a3f9a535dbdba1da4 [diff] |
Fix TimeUtils.formatDuration for exactly one of a unit Previously printing a duration where a unit (except ms) was one and the next smallest unit was zero would result in the duration being being expressed in the next smallest unit. For example 1m0s0ms would be formatted as 60s0ms. Update testFormatHugeDuration to supporting times > 999 days The implementation was fixed in 3d1933c45fe9ba2389ebd166d96abeceab1971d1 Change-Id: I9d609f7a0f82755ea653a205293a6e3785a10d1e