How do I check if the current Time object is at AT MOST 1 day old. I only want to store it to the database if its 24 hours old or newer. if it makes it easier I would also accept anything “yesterday” regardless of the current time. As soon as it switches to the next day “yesterday” changes as well, so at MOST it would be 47 hours and 59 minutes.
The time format I have is: 2011-12-16 17:44:01 -0800
1 Answer