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.
可能重复: 如何从周数中获取日期? 查找给定周数的日期
我如何将周数 (%W) 转换回某个日期。例如,将第 20 周转换为 2012 年 5 月 15 日。
检查日期#商业:
Date.commercial(2012, 20) #=> Mon, 14 May 2012