public class Duration extends Object
Constructor and Description |
---|
Duration(long milliseconds) |
Modifier and Type | Method and Description |
---|---|
long |
getValue() |
static Duration |
parse(String duration)
Parses the string representation of a duration.
|
Date |
since() |
Date |
since(Date date) |
public long getValue()
public Date since()
public static Duration parse(String duration)
long
number and <unit> is one of the
following
s
: secondm
: minuteh
: hourd
: dayduration
- duration stringCopyright © 2018 Open eHealth Foundation. All rights reserved.