android毫秒转化为时间
/**
*
* @Title:getDateData
* @Description:毫秒转成日期格式
* @param newsTime
* 时间
* @return
* @author lisher
*/
public static String getDate(String newsTime, String format) {
SimpleDateFormat sdf = new SimpleDateFormat(format);
long newsDateL = (Long.parseLong(newsTime)) * 1000;
String newsDateS = sdf.format(new Date(newsDateL));
return newsDateS;
}
[/code
猜你喜欢
转载自lisher.iteye.com/blog/2021488
今日推荐
周排行