版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/zhang_xiaomeng/article/details/87969207
Calendar c = Calendar.getInstance();
c.set(2019,1,1,0,20);
Date date = c.getTime();
if(c.get(Calendar.DATE) == 1 && c.get(Calendar.HOUR)==0 && c.get(Calendar.MINUTE) <= 59){
//...
}