Consider the following timestamp
timestamp <- ymd_hms("2011-08-10 14:00:00", tz = "Pacific/Auckland")
> timestamp
[1] "2011-08-10 14:00:00 NZST"
What is the easiest way to get part of the day from him 2011-08-10and make sure that this day is the correct date, not a string?
Using lubridate::day(timestamp)here is clearly not working.
source
share