how to get duration in millisecond java code example
Example: java cast duration to long
Duration d = Duration.ofHours(1); // 1 hour with java.time
long millis = d.toMillis(); // 1 hour in milliseconds
Duration d = Duration.ofHours(1); // 1 hour with java.time
long millis = d.toMillis(); // 1 hour in milliseconds