我如何比较mytime是否在fromtime和totime之间:Timestamp fromtime; Timestamp totime; Timestamp mytime; 最佳答案 if(mytime.after(fromtime) && mytime.before(totime)) //mytime is in between