DavisVaughan / warp

Group Dates

Home Page:https://davisvaughan.github.io/warp/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ISO week conversion

DavisVaughan opened this issue · comments

Easiest to go to year, week[1, 53], weekday[0, 6] from year, ymonth, yday

http://howardhinnant.github.io/date_algorithms.html#Example:%20Converting%20between%20the%20civil%20calendar%20and%20the%20ISO%20week%20calendar

Part of #25 ?

warp_year_ymonth_yday(year, ymonth, yday, to = "iso-week")
warp_year_yday(year, yday, to = "iso-week")
warp_month_mday(month, mday, to = "iso-week")
warp_days(days, to = "iso-week")

warp_iso_week(
  year, 
  yweek, 
  wday, 
  to = c("year_ymonth_yday", "year_yday", "month_mday", "days")
)