是否有定义多年的周数的数字周数格式?

Is there any numeric week number format which define week in many years?

借助 PHP 日期函数,我们可以轻松地使用从 0 到 53 的周数。这个计数每年从零开始。

我正在寻找一种日期格式,它给我一个数值,该数值每年都在持续,而不会重置计数。

示例:

this_week = 578 (this week is in 2015)
newt_week must be = 579 (even it's in next year)

有没有为此目的预先定义的格式?如果没有,哪种方法可以帮助我找到自定义解决方案?

我建议使用 PHP 时间函数转换为 UNIX 时间(自 1970-01-01 以来的秒数)。您可以通过除以一周中的秒数来找到自给定日期以来的周数。事实上,PHP 文档文档 (http://php.net/manual/en/function.time.php) 显示了一个非常类似于您要实现的示例。