2012-11-21 109 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