A block’s time stamp is valid when it's greater than the median of the last eleven blocks and less than the evaluating node’s current time plus two hours: https://bitcoin.stackexchange.com/q/915/5406