469,315 Members | 1,601 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,315 developers. It's quick & easy.

code to check if in time interval pass midnight

Hi, not sure who has done this.

I want to set up a time interval that could be pass midnight. so
people can enter

8AM to 8AM (pass midnight to 2nd day)
8AM to 2 AM (pass midnight to 2nd day)
8AM to 2 PM

The have code to check if the time is in interval.

Any one has a good idea?

Thanks

Greg

May 18 '07 #1
1 2983
greg chu wrote:
I want to set up a time interval that could be pass midnight. so
people can enter

8AM to 8AM (pass midnight to 2nd day)
8AM to 2 AM (pass midnight to 2nd day)
8AM to 2 PM
If it helps, what you're actually doing it looking to see whether the end
time is earlier than (or equal to) the start time. If it is, the time period
passes midnight.

--

(O)enone
May 18 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by JA | last post: by
2 posts views Thread by Robert | last post: by
4 posts views Thread by Holger Marzen | last post: by
2 posts views Thread by John | last post: by
3 posts views Thread by Iain Miller | last post: by
2 posts views Thread by Luis P. Mendes | last post: by
4 posts views Thread by bukzor | last post: by
25 posts views Thread by Brian | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by harlem98 | last post: by
1 post views Thread by Geralt96 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.