摘要:
貌似最近很流行这个,就写了个js函数实现之 New Document 最近研究android,用java写的实现方法public static String getTimeDiff(Date date) { Calendar cal = Calendar.getInstance(); long diff = 0; Date dnow = cal.getTime(); String str = ""; diff = dnow.getTime() - date.getTime(); if (diff > 2592000000L) {//30 *... 阅读全文