I would like to extract the hour from a POSIXct time in R, but retrieve the 2 digit answer.
POSIXct
For example,
test=as.POSIXct(\"2015-03-02 03
Try to do this:
strftime(test, format="%H")
to extract hours and
strftime(test, format="%m")
for month