tidyverse / lubridate

Make working with dates in R just that little bit easier
https://lubridate.tidyverse.org
GNU General Public License v3.0
724 stars 207 forks source link

Consider passing through date-time objects in parser functions #739

Open vspinu opened 5 years ago

vspinu commented 5 years ago

Beginner R users often pass date-time objects to parsing functions like ymd_hms. This is very inefficient and can cause unexpected behavior (for example ymd_hm would not parse a full date). Directly returning an appropriate date-time when passed in a date-time object would avoid such issues.

hadley commented 4 years ago

Probably worth also warning, to help people learn good practice.