I use lubridate
to define a date, which does not contain hour, minute and second. The code is below:
library(lubridate)
start_date <- as.POSIXct("1980-1-1")
> start_date
[1] "1980-01-01 CST"
I want to add the time information "0:00:00" to it. That is, start_date
is now "1980-01-01 0:00:00". How to make it? I want start_date
still a Date form (i.e., ymd_hms), not a character.