lubridate provides day, hour and year functions to get and set the day, hour and year components of a date time. A logical addition would be a date function to get and set the date component. It would circumvent the use of as.Date(,tz) which can cause problems if tz is set wrong. It would conflict with the base version of date which is poorly named and effectively replaced by lubridate::today. It could be called d8 to avoid any conflicts.
Please let me know if I am missing something.
I am willing to implement.
lubridate provides
day,hourandyearfunctions to get and set the day, hour and year components of a date time. A logical addition would be adatefunction to get and set the date component. It would circumvent the use of as.Date(,tz) which can cause problems if tz is set wrong. It would conflict with the base version ofdatewhich is poorly named and effectively replaced by lubridate::today. It could be calledd8to avoid any conflicts.Please let me know if I am missing something.
I am willing to implement.