Suppose I’ve got a timestamp, X.
Using PHP, how can I find the timestamp that represents noon of the day that X is from?
I guess I would need to convert X to a date, extract the day, and then convert noon from that day to a timestamp. Is there an easy way to do this in PHP?
strtotime('noon', $timestamp)should work