Java tutorial
import java.time.Duration; import java.time.temporal.ChronoUnit; public class Main { public static void main(String[] args) { Duration duration = Duration.of(10, ChronoUnit.DAYS); System.out.println(duration); } }