Is there a Java package with all the annoying time constants like milliseconds/seconds/minutes in a minute/hour/day/year? I\'d hate to duplicate something like that.
Here's what I use for getting milliseconds.
import javax.management.timer.Timer; Timer.ONE_HOUR Timer.ONE_DAY Timer.ONE_MINUTE Timer.ONE_SECOND Timer.ONE_WEEK