in reply to 24 hours ago localtime

I know there are MySQL time functions but I'd rather just calculate based on the localtime I inserted in there. (sorry, forgot to post this with the question).