jdk8为我们提供了非常好用的时间日期工具类。我们可以使用LocalDate 、LocalTime 、LocalDateTime来表示日期和时间,拥有极为方便的API满足业务需求,并且和数据库的字段可直接对应。这几个可以满足开发中的所有需求,极力推荐使用,请彻底放弃 ...
2016年11月1日 16:18:19 星期二 主要用到的函数是 strtotime() strtotime('+1 Tuesday', $timestamp) 获取下周二, 从时间戳$timestamp开始计算, 如果$timestamp留空, 则从当天开始计算 strtotime ...
Redis中SpringBoot项目中的配置: 1、引入 spring-boot-starter-redis(POM.XML) <dependency> <groupId& ...
select left(convert(varchar(10),getdate(),20),4)+replace(right(convert(varchar(10),getdate(),20), ...
闰年需要同时满足以下条件: 1、年份能被4整除; 2、年份若是 100 的整数倍的话需被400整除,否则是平年。 转自:菜鸟教程 ...
...
echo date("Ymd",strtotime("now")), "\n"; echo date("Ymd",strtotime("-1 week Monday")), "\n"; ec ...