in reply to Passing epoch time to function to compare open session time and close session time
Maybe the time function will be of some help?