Correct `lubridate::as_datetime()` (#1060)

Correct `lubridate::as_date_time()` to  `lubridate::as_datetime()` (unless this is a new function name coming up in lubridate).
This commit is contained in:
Jeffrey Stevens 2022-08-15 08:50:47 -05:00 committed by GitHub
parent 9d398b7efe
commit 476f2c8282
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -722,7 +722,7 @@ attributes(y)
POSIXlts are rare inside the tidyverse.
They do crop up in base R, because they are needed to extract specific components of a date, like the year or month.
Since lubridate provides helpers for you to do this instead, you don't need them.
POSIXct's are always easier to work with, so if you find you have a POSIXlt, you should always convert it to a regular date time with `lubridate::as_date_time()`.
POSIXct's are always easier to work with, so if you find you have a POSIXlt, you should always convert it to a regular date time with `lubridate::as_datetime()`.
### Tibbles