public class TimeUtils extends Object
Constructor and Description |
---|
TimeUtils() |
Modifier and Type | Method and Description |
---|---|
static java.time.Duration |
parseDuration(String text)
Parse the given string to a java
Duration . |
public static java.time.Duration parseDuration(String text)
Duration
.
The string is like "123ms", "321s", "12min" and such.text
- string to parse.Copyright © 2014–2020 The Apache Software Foundation. All rights reserved.