标签: java android alarmmanager android-calendar java-calendar
下面的代码将从过去输出Yesterday,X Minutes ago等。
Yesterday
X Minutes ago
DateUtils.getRelativeTimeSpanString(timeInMilliSeconds);
如何将其逆转以备将来使用?像Tomorrow,After X Minutes,After X Hours,After 2 Days等
Tomorrow
After X Minutes
After X Hours
After 2 Days