public interface TimeFormat
| Modifier and Type | Method and Description |
|---|---|
String |
decorate(Duration duration,
String time)
Decorate with past or future prefix/suffix (with rounding)
|
String |
decorateUnrounded(Duration duration,
String time)
Decorate with past or future prefix/suffix (without rounding)
|
String |
format(Duration duration)
Given a populated
Duration object. |
String |
formatUnrounded(Duration duration)
Given a populated
Duration object. |
String format(Duration duration)
Duration object. Apply formatting (with rounding) and output the result.The - original Duration instance from which the time string should be decorated.String formatUnrounded(Duration duration)
Duration object. Apply formatting (without rounding) and output the result.The - original Duration instance from which the time string should be decorated.String decorate(Duration duration, String time)
duration - The original Duration instance from which the time string should be decorated.time - The formatted time string.Copyright © 2015 OCPsoft. All Rights Reserved.