一: 使用示例
因为双十一就快到了, 所以接触了一个秒杀的活动, 其中有这么一块代码:
1 /** 2 * 检查抽奖时间 3 * 4 * @return true 可以抽奖 false 不能抽奖 5 */ 6 private boolean checkDrawTime() { 7 return DateTime.parse("2016-11-11 11:11:00", DateTimeFormat.forPattern("yyyy-MM-dd HH:mm:ss")).isBeforeN

