Closed adrupp closed 1 year ago
This is how R prints datetimes (aka POSIXct). If you see "UTC" in the printed version then it's a POSIXt, otherwise it's a Date object.
You can format it explicitly as well
format(ymd_hms("2023-01-01 00:00:00"), format = "%Y-%m-%d %H:%M:%S")
[1] "2023-01-01 00:00:00"
When I try to convert a datetime character vector or string, where the time is 00:00:00, the time is cut:
I would expect, that the items in the vector will be formated into POSIXct like this: