我有一个 int 数,我需要将其转换为日期,但采用这种形式
("几秒前","几分钟前","几个小时前""昨天","几天前","上周","上个月","去年")
我可以得到日期
int seconds =1320105600;
int millis = seconds * 1000;
Date date = new Date(millis);
SimpleDateFormat sdf = new SimpleDateFormat("EEEE,MMMM d,yyyy h:mm,a", Locale.ENGLISH);
sdf.setTimeZone(TimeZone.getTimeZone("UTC"));
String formattedDate = sdf.format(date);
我怎样才能把它转换成那种形式