这让我完全被难住了,因为我是使用 Joda API 的新手。如何打印剩余的秒数?
DateTime time1 = DateTime.parse(c.lastBankTime);
DateTime time2 = new DateTime();
Seconds Interval = Seconds.secondsBetween(time1, time2);
Seconds minInterval = Seconds.seconds(10);
if(Interval.isGreaterThan(minInterval)){
c.sendMessage("been 10 secs");
c.lastBankTime = new DateTime().toString();
} else{
c.sendMessage("Please wait n seconds"); //How do I get remaining seconds?
}