How can I check if a timestamp is older than 12 hours?

I need to make a link work for 12 hours, after that I need to display an error message.

Edit
Report