If both dates are in a unix time stamp form then, you can do this.
PHP Code:
function can_post($lastPost, $now) {
$seconds_in_a_day = 24*60*60;
$seconds_since_last_post = $now - $lastPost;
If ($seconds_since_last_post < $seconds_in_a_day) {
return 0;
} else {
return 1;
}
}
This function will return a value of 0 if the person cannot post and a function of one if they can.