更新时间:2023-02-20 11:39:28
当我对日期进行比较时,我确保使用 Calendar 对象.然后我使用 compareTo() 函数:
When I'm doing comparisons on dates, I make sure to use Calendar objects. Then I use the compareTo() function:
if ( myCalendar.compareTo(upperLimitCalendar) >= 0 )
在此处查看文档: