我的 android 应用程序需要显示必须根据逻辑检查增加的时间
我的条件示例如下
d = (String) DateFormat.format("yyyy-MM-dd,hh:mm:ss", new java.util.Date());
if(condition)
{
//i want to increment the time for about an hour and display
}
else
{
// increment the date to 1 and display
}
我不关心条件,而是关心时间和日期递增的代码
现在如何编码以相应地增加上述时间格式