dot*_*tty 0 php date strtotime unix-timestamp
我正在制定时间管理计划,并想知道如何找到某个月的第一个星期四.PHP有什么功能可以帮助解决这个问题吗?strtotime不想正确格式化一些字符串.
如果我使用strtotime("first thursday december 2011")它返回1323302400实际上是第二个星期四(12月8日).
如果我使用strtotime("first thursday december 2011 - 1 week")它返回132209280011月24日.
请有人伸出援助之手!
Lev*_*son 10
阅读PHP Bug#53539.修复是使用of:strtotime("first thursday of december 2011")
请注意,PHP 5.3中修复了许多DateTime错误.如果你运行<5.3,你应该真的升级.