lubridate icon indicating copy to clipboard operation
lubridate copied to clipboard

Consider passing through date-time objects in parser functions

Open vspinu opened this issue 5 years ago • 1 comments

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.

vspinu avatar Dec 15 '18 13:12 vspinu

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

hadley avatar Nov 19 '19 23:11 hadley