如何使用 Zend_Date 类获取当前年份的周数
我们如何获得当年的周数,
例如,2009 年有 53 周,2010 年有 52 周
how can we get number of weeks of current year,
for example if it's 2009 there are 53 weeks and 2010 has 52
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
也许您可以尝试将日期设置为当年的 12 月 31 日,并查询周数?
Perhaps you can try setting the date to 31st Dec of current year, and querying the week number?