android里如何获得timestamp时间类型呢 在stackoverflow上的5268495
String myDate = new String("your date"); SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); Date date = format.parse(myDate); date.getTime(); //fetch the time as milliseconds from Jan 1, 1970 Calendar.getInstance.getTimeInMillis()