format property
How the remaining time is written out.
| Token | Unit |
|---|---|
Y |
Years |
M |
Months |
D |
Days |
H |
Hours |
m |
Minutes |
s |
Seconds |
S |
Milliseconds |
Each unit takes what it can from what the larger ones left, so a format
that omits a unit rolls it into the next one down: HH:mm:ss shows
26:00:00 for a day and two hours, where D[d] HH:mm:ss shows
1d 02:00:00. A run of a token is the width it is padded to — ss gives
07, s gives 7.
Text in square brackets is kept as written, which is how a unit letter
gets drawn as itself: H[h] m[m] gives 2h 5m.
Implementation
final String format;