【发布时间】:2016-10-10 14:07:01
【问题描述】:
如何从 R 脚本中的日期时间找到 week_of_month 和 week_of_year ?
例如:日期时间2016-09-27 00:00:07.477、week_of_month is 5 和week_of_year is 39
我从weekdays.Date("2016-09-27 00:00:07.477") 收到day_of month。
同样我想得到week_of_month和week_of_year。
【问题讨论】:
-
从这个链接stackoverflow.com/a/25202142/1448357得到解决方案
week_of_month. and formatting date by%U`给出了week_of_year。