I recently learned about how the lightning network works, and one particular thing that I found interesting is that, to prevent fraud, the output for each commitment transaction contains a clause for the revocation secret. If a bad actor broadcasts a prior state of the payment channel to the blockchain, the other party can use the revocation secret within 24 hours to claim all the money held by the multi-sig address.
My question is, how does the bitcoin blockchain know how to "count" 24 hours? Is there anything programmed in the blockchain for tracking time (e.g. UNIX time)?