Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试创建一个函数,该函数在 php 中返回给定年份的所有联邦假期,但我无法通过 Martining Luther King Holiday 获得正确答案。我正在计算日期如下:
date('m/d/Y', strtotime("third monday January 2018"))
但我的函数返回 01/22/2018 而不是正确的 01/15/2018。与 2019 相同的函数返回正确的日期 01/21/2019。知道如何解决这个问题吗?