I would like to list all the hours between two POSIXct values, e.g.
- For an interval (23/10/2016 02:29:59 , 23/10/2016 14:00:00) I would list all hours H03 to H14;
- For an interval (23/10/2016 02:00:00 , 24/10/2016 05:00:00) I would list all hours starting with H02 on 23/10/2016 to H05 on 24/10/2016;
- For an interval (24/10/2016 14:00:00 , 26/10/2016 05:00:00) I would list all hours starting with H14 on 24/10/2016 to H05 on 26/10/2016
Anyone can help on this one?
Thanks!