public class HumanDuration extends Object
Duration.
Defaults to milliseconds for a value with no unit.| Constructor and Description |
|---|
HumanDuration() |
| Modifier and Type | Method and Description |
|---|---|
static String |
format(java.time.Duration duration)
Convert the duration to a string of the same format that is accepted by
parse(String). |
static java.time.Duration |
parse(String duration)
Creates a new
Duration by parsing the given string. |
public static java.time.Duration parse(String duration)
Duration by parsing the given string.duration - the duration - for example 500ms or 1hpublic static String format(java.time.Duration duration)
parse(String).Copyright © 2018 The International Consortium of Investigative Journalists. All rights reserved.