Closed Market

How to verify if the market is closed. What's the function?