
Show with time in millis
By:
ace on
Mar 1st, 2011 | syntax:
None | size: 0.57 KB | hits: 16 | expires: Never
/**
* Write a description of class Show here.
*
* @author (your name)
* @version (a version number or a date)
*/
public class Show
{
private long runtimeInMillis;
private String title;
public Show(int hh, int mm, String title){
runtimeInMillis(hh, mm);
this.title = title;
}
private void runtimeInMillis(int hh, int mm){
long millis = 0;
millis += hh*60*60*1000; //60 min per hour, 60 sec per min, 1000 millis per sec
millis += mm*60*1000;
runtimeInMillis = millis;
}
}