A simple question:
# Given the following initial time
t0 <- strptime('17/Nov/2010:08:04:21',format='%d/%b/%Y:%H:%M:%S')
# ...and final time
t1 <- strptime('21/Jan/2011:13:11:04',format='%d/%b/%Y:%H:%M:%S')
# I can calculate the difference of time
difftime(t1,t0,units='hours')
# Time difference of 1565.112 hours
BUT, I also wish to know how many hours correspond to November, to December, and to January separately. Of course, I have to do that for thousands of data, from different years, but looping is not my problem. Any idea? Thanks!