Working with timestamps - opening hours

Hello everybody, 
I am building an app in which I have shops. Those shops have opening hours.
I want to be able to tell the user if the shop is open or not, depending on the current time. 

Opening hour - 8:AM/6PM 
Current time - 2PM
State - Open

Do you have a solution for me ? 
Thanks, 
Robin
Other
2 replies