Java tutorial
//package com.java2s; import java.util.concurrent.TimeUnit; public class Main { static int minutesToMillis(int minutes) { return (int) TimeUnit.MINUTES.toMillis(minutes); } }