如何查询某自然周的第一天是星期几?
- 内容介绍
- 文章标签
- 相关推荐
本文共计42个文字,预计阅读时间需要1分钟。
pythondef get_first_day(date): timestamp=date sdate=date('Y-m-d', timestamp - (date('N', timestamp) - 1) * 86400) return sdate
gistfile1.txtfunction get_W_firstday ($date) { $timestamp = $date; $sdate = date('Y-m-d', $timestamp - (date('N', $timestamp) - 1) * 86400); return $sdate; }
本文共计42个文字,预计阅读时间需要1分钟。
pythondef get_first_day(date): timestamp=date sdate=date('Y-m-d', timestamp - (date('N', timestamp) - 1) * 86400) return sdate
gistfile1.txtfunction get_W_firstday ($date) { $timestamp = $date; $sdate = date('Y-m-d', $timestamp - (date('N', $timestamp) - 1) * 86400); return $sdate; }

