One of the fields return from Statement call, is purchase_time. The data type is integer. What does it mean, how do we convert from the integer time to date and time?
It's Unix/Epoch time. You'll be able to find epoch to date time converters for the language you develop with a simple google search.