There is the DatePeriod class.
EXAMPLE:
$begin = new DateTime('2013-02-01');
$end = new DateTime('2013-02-13');
$daterange = new DatePeriod($begin, new DateInterval('P1D'), $end);
foreach($daterange as $date){
echo $date->format("Y-m-d") . "<br>";
}
(P1D stands for period of one day, see DateInterval for further documentation)
$pe… Read More
下载地址:https://github.com/samacs/simple_html_dom
文档地址 http://simplehtmldom.sourceforge.net/
中文手册:http://microphp.us/plugins/public/microphp_res/simple_html_dom/manual.htm
下载:simplehtmldom_1_5
一直以来使用php解析html文档树都是一个难题。Simple HTML DOM parser 帮我们很好地解决了使用 php html 解析 问题。可以通过这个php类来解析html文档,对其中的html元素进行操作 (PHP5+以… Read More
@Test
public void testGetTitle(){
System.out.println(new LocalDate().minusDays(1).toString("MM/dd/yyyy")); // joda-time
Calendar c1 = Calendar.getInstance();
int year = c1.get(Calendar.YEAR);
int month = c1.get(Calendar.MONTH);
根据官方pdf翻译:https://www.jetbrains.com/idea/docs/IntelliJIDEA_ReferenceCard_Mac.pdf
在 IntelliJ IDEA 中有两个 Mac 版本的快捷键,一个叫做:Mac OS X,一个叫做:Mac OS X 10.5+
目前都是用:Mac OS X 10.5+
有两套的原因:https://intellij-support.jetbrains.com/hc/en-us/community/posts/206159109-Updated-Mac-OS-X-keymap-Feedback-needed
建议将 Mac 系统中与 IntelliJ IDEA 冲突的快捷键… Read More
项目地址:https://github.com/jmosbech/StickyTableHeaders
下载:StickyTableHeaders-master
实例演示: DEMO.
StickyTableHeaders
So what’s it good for? Well, let’s say you want to display a long list of fairly uniform tabluar data, like stock exchange listings or sport statistics but you don’t want your users to get lost in the… Read More