I am using an API which requires a date parameter as a number of seconds, an int.
int
My problem is that I currently store this time in java.util.dat
java.util.dat
import java.util.Date;
... long secs = (new Date().getTime())/1000; ...
Please see - http://docs.oracle.com/javase/6/docs/api/java/util/Date.html#getTime()