Jump to content

Comparing times of day?


christopherpm

Recommended Posts

I have, for example, 3 strings:-$sunrise = "7:30 am"$sunset = "6:25 pm"$time = "7:00 pm"I want my script to act differently based on whether $time falls inbetween $sunrise and $sunset, or outside (i.e. between $sunset and $sunrise)Can anyone give me a clue as to how the heck I do this? Thanks

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...