Java tutorial
import java.time.Duration; public class Main { public static void main(String[] args) { long twoHoursInSeconds = Duration.ofHours(2).getSeconds(); System.out.println(twoHoursInSeconds); } }