Basically, int(trans_datetime) gives you just the date part of the timestamp. If you wanted to get everything from 6AM on Day1 to 6AM on Day2, you could subtract 6/24 of a day from trans_datetime before you take the Int, then add it back afterwards.
Code:
int(trans_datetime - (6/24)) + 6/24
which is the same as
Code:
int(trans_datetime - 0.25) + .25
Those will give you a "date" that is the starting point of the period, and reads something like 10/31/2013 06:00:00 AM.
You don't actually have to add it back, instead you can just remember that whatever percentage of a day you subtracted, and remember that the report will start at that time of day. For example, if you subtracted 22/24 of a day, then the date that says 10/31/2013 is actually all the transactions from 10/31/2013 10:00:00 PM to 11/01/2013 10:00:00 PM.