Depending on what your purpose is, it might be easier/better to make the comparison in your SQL query instead, when retreiving the data. As in
WHERE my_time < DATE_SUB(now(), INTERVAL 3 MONTH)
Your answers will only be as good as your question. Formulate it well and give all the necessary information.