public static long getDateFromStr(String date,String format){
long longDate=0l;
try {
SimpleDateFormat sd=new SimpleDateFormat(format);
longDate=sd.parse(date).getTime();
} catch (ParseException e) {
}
return longDate;
}
Integer exitTimeOutNumber=Integer.valueOf(SXStringUtils.toString(DateTime.getDateFromStr(“60分钟”, "mm")/1000));
Log.e("radio", SXStringUtils.toString(exitTimeOutNumber));
DateTime dt = new DateTime(exitTimeOutNumber*1000);
Log.e("radio",dt.getMinute() + "分钟" );
小于60分钟的都可以转换成功,60分钟和大于60分钟结果就不对了,请问这事什么原因
|