Open ckatsulis opened 6 years ago
I think the answer to this is 'no'
Time based subsetting 'T09:00/T17:00' is not fully ISO-8601 compliant.
As I recall, in the ISO standard, the portion after the T is just to get to granularities of less than a day.
So xts's time of day subsetting is more an ISO-8601-style subset that makes a nod to how users generally want the data: accross all days, get the time subset I've specified.
Now getting back to why I think the answer is no.
If you specified just a single time, it isn't really a subset, but rather a single point in time. One what day? With what precision? what about time zone changes or daylight savings time?
So, my thoughts are that the current behavior is correct, and as I would expect it. I'm sure @joshuaulrich will have thoughts as well.
xtsData.txt
Description
I was curious if sub-setting on a single time string should return the data point from each day where that time criteria is met.
Expected behavior
Much like subletting by a single date xtsData['2018-04-27'], I believe I have seen xtsData['T17:00:00'] work at certain points, but currently I am not able to get this to work on minute intervals.
Minimal, reproducible example
Session Info