Curious what your plan is when we rollover into December. If you are using tag history, then to me it's easier to get the data via script,
https://docs.inductiveautomation.com/display/DOC81/system.tag.queryTagHistory
For t_stamp, see this post,
FROM_UNIXTIME(t_stamp/ 1000)