Duration ZERO
Constant for a duration of zero.
ZERO
has the following syntax.
public static final Duration ZERO
The following example shows how to use ZERO
.
import java.time.Duration; public class Main { public static void main(String[] args) { Duration duration = Duration.ZERO; System.out.println(duration); } }
The code above generates the following result.