echo date("Y-m-d",strtotime("now")); echo ""; echo date("Y-m-d",strtotime("-1 week Monday")); echo ""; echo date("Y-m-d",strtotime("-1 week Sunday"));... ...
分类:
Web程序 时间:
2018-01-26 18:40:51
阅读次数:
202
Do not pray for an easy life, pray for the strength to endure a difficult one. 不要祈求安逸的人生,祈求拥有撑过艰难的力量。 It is not life becomes easier, it is you that be ...
分类:
其他好文 时间:
2018-01-25 23:03:31
阅读次数:
179
echo date("Ymd",strtotime("now")), "\n"; echo date("Ymd",strtotime("-1 week Monday")), "\n"; echo date("Ymd",strtotime("-1 week Sunday")), "\n"; echo ... ...
分类:
Web程序 时间:
2018-01-25 17:20:20
阅读次数:
165
linux任务计划cron 1.crontab命令任务计划配置文件 2.编辑计划任务crontab -e ...
分类:
系统相关 时间:
2018-01-23 20:25:05
阅读次数:
179
一.应用: 同样的,sunday算法也是在一个字符串中查找另一个字符串出现的首地址,是Daniel M.Sunday于1990年提出的,从销量上讲,Sunday>BM>KMP,是这类问题的最优解。在实用上,KMP算法并不比最简单的c库函数strstr()快多少,而BM算法则往往比KMP算法快上3-5 ...
分类:
编程语言 时间:
2018-01-21 17:32:02
阅读次数:
215
Yesterday is not ours to recover, but tomorrwo is ours to win or lose. 我们无法重拾昨天,但我们可以选择赢得或者输掉明天。 Even if we can go back to yesterday, we might not be ...
分类:
其他好文 时间:
2018-01-12 01:35:18
阅读次数:
161
Java Calendar 类时间操作,这也许是创建和管理日历最简单的一个方案,示范代码很简单。 演示了获取时间,日期时间的累加和累减,以及比较。 原文地址:blog.csdn.net/joyous/article/details/9630893 注意事项: Calendar 的 month 从 0 ...
分类:
编程语言 时间:
2018-01-02 15:18:00
阅读次数:
257
PHP星期几获取代码: 1 date("l"); 2 //data就可以获取英文的星期比如Sunday 3 date("w"); 4 //这个可以获取数字星期比如123,注意0是星期日 获取中文星期几: 1 $weekarray=array("日","一","二","三","四","五","六"); ...
分类:
Web程序 时间:
2018-01-02 13:26:18
阅读次数:
238