Business Hours of Operation

How is this done? I've seen this in google search results. Let people know your business hours of operations, and when you're actually open and when you are actually closed?

This is all happening in real time so when the business is actually opened you will see this in your search results and when it is closed same thing.