471,852 Members | 919 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,852 software developers and data experts.

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 3364
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
NeoPa
reply views Thread by NeoPa | last post: by
reply views Thread by YellowAndGreen | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.