php-好';日期';处理工作日的课程?

php-好';日期';处理工作日的课程?,php,Php,有没有人知道一个php类或库可以帮助处理日期(指工作日)?例如,我可以用它来表示“给我下周二9:00的时间戳”或“这是下周二和下周四之间的时间戳” 我只是有我的应用程序的一部分,我需要确保我没有在特定的时间安排事情。一些注释解释了如何使用date实现这一点。有内置类,但您甚至不需要它: //this gives results in the default timezone //timestamp for next Tuesday at 9:00 strtotime("next tuesday

有没有人知道一个php类或库可以帮助处理日期(指工作日)?例如,我可以用它来表示“给我下周二9:00的时间戳”或“这是下周二和下周四之间的时间戳”

我只是有我的应用程序的一部分,我需要确保我没有在特定的时间安排事情。

一些注释解释了如何使用
date
实现这一点。有内置类,但您甚至不需要它:

//this gives results in the default timezone
//timestamp for next Tuesday at 9:00
strtotime("next tuesday 09:00");
//is this timestamp between next Tuesday and next Thursday
$ts >= strtotime("next tuesday") && $ts < strtotime("next friday")
//这将在默认时区中给出结果
//下周二9:00的时间戳
标准时间(“下周二09:00”);
//这是下周二到下周四之间的时间戳吗
$ts>=strottime(“下周二”)和&$ts
如果必须使用类,那么它的功能相当强大。它附带Zend框架,但据我所知,它是相当独立的。没有义务实现MVC和所有其他Zend功能。

您可以使用strotime()吗