开发者

Find Unix Timestamp of Midnight on Most Previous Monday

开发者 https://www.devze.com 2023-01-05 12:18 出处:网络
How can I find the Unix Timestamp of m开发者_C百科idnight on (the beginning of) the most previous Monday?Use strtotime

How can I find the Unix Timestamp of m开发者_C百科idnight on (the beginning of) the most previous Monday?


Use strtotime

date("r", strtotime("last monday"));

yields

Mon, 28 Jun 2010 00:00:00 -0700
0

精彩评论

暂无评论...
验证码 换一张
取 消