Skip to content
Prev 245798 / 398506 Next

Lost in POSIX

Dimitri Shvorob wrote:
That is not an issue with the "minute" function, as you can see if you
evaluate

 > minute(x$time)
[1] "2002-04-30 23:01:00 PDT" "2002-04-30 23:01:00 PDT"

or

 > str(minute(x$time))
  POSIXct[1:2], format: "2002-04-30 23:01:00" "2002-04-30 23:01:00"

rather, you are seeing a side effect of "sapply".