2012-11-21 138 views

回答

0

我認爲這應該工作:

Date now = Calendar.getInstance().getTime(); // this gets you current time as a Date 
long milis = now.getTime(); // this gets you current time in UNIX format