当前位置:网站首页>Determine whether the appointment time has expired
Determine whether the appointment time has expired
2022-06-25 23:11:00 【Concentrate】
public class make an appointment {
public static boolean dateEq(Date date) {
Calendar c = Calendar.getInstance();
c.setTime(date);
c.add(Calendar.DAY_OF_MONTH, 7);
date = c.getTime();
Date date1 = new Date();
return date1.before(date);
}
public static void main(String[] args) {
make an appointment y =new make an appointment ();
boolean b = y.dateEq(new Date());
System.out.println(b);
}
}
边栏推荐
- 2022-2028 global SiC igniter industry research and trend analysis report
- MySQL数据库常用函数和查询
- NRM source switching tool
- pdm导入vscode的实现方式
- Flex & Bison Start
- The new version of Tencent's "peace elite" is coming: add a new account security protection system, and upgrade the detection of in-game violations
- How to design a complex business system? From the understanding of domain design, cloud native, micro service, and middle platform
- Oracle - data query
- 2022-2028 global horizontal reciprocating compressor industry research and trend analysis report
- 2022-2028 global industrial TFT LCD industry survey and trend analysis report
猜你喜欢
LM小型可编程控制器软件(基于CoDeSys)笔记十七:pto脉冲功能块
腾讯《和平精英》新版本将至:新增账号安全保护系统,游戏内违规行为检测升级
Glory launched the points mall to support the exchange of various glory products
为什么OpenCV计算的帧率是错误的?
NRM source switching tool
干货丨产品的可行性分析要从哪几个方面入手?
How to use JMeter for interface testing
百度:2022年十大热度攀升专业出炉,第一名无悬念!
Eureka core ⼼ source code analysis
2、一个向量乘它的转置,其几何意义是什么?
随机推荐
小程序-视图与逻辑
2022-2028 global TFT LCD touch screen industry research and trend analysis report
2022-2028 global DC linear variable differential transformer (LVDT) industry survey and trend analysis report
ES6 -- formal parameter setting initial value, extension operator, iterator, and generating function
Network security project questions of the first Henan vocational skills competition in 2022
Basic concepts of processor scheduling
电路模块分析练习6(开关)
Unity技术手册 - 粒子发射和生命周期内速度子模块
关闭MongoDB一些服务需要注意的地方(以及开启的相关命令)
Unity的Ping類使用
How to design a complex business system? From the understanding of domain design, cloud native, micro service, and middle platform
Transformers load pre training model
字符串变形(字符串大小写切换和变现)
Eureka core ⼼ source code analysis
String deformation (string case switching and realization)
Chapter 3 use of requests Library
Common MySQL database functions and queries
NLP pre training model-2018:bert dictionary
牛客小白月赛52--E 分组求对数和(二分)
2022-2028 global iridium electrode industry research and trend analysis report