I have a character that I would like to make class POISXct
This works as expected:
x = "2018-06-29 06:00:00"
as.POSIXct(x) ## "2018-06-29 06:00:00 EDT"
However if the hours should be 00:00:00
it is dropping everything but the date:
as.POSIXct(x) - hours(6) ## "2018-06-29 EDT"
What do I have to change so that
as.POSIXct(x) - hours(6)
returns
"2018-06-29 00:00:00 EDT"