J
Jeff B.
Hello,
Has anyone ran across an efficient algorithm for determining if a DateTime
or TimeSpan value falls within two other DateTime/TimeSpan values?
For example, if I have a start time of 09:00 and an end time of 21:00 and I
want to test if 16:00 is between them, this is fairly straightforward.
However, if my start time is 21:00 and my end time is 09:00 and I want to
test if 04:00 is between them, then it's not quite as straightforward.
I don't want to take the actual dates into account, only the times.
Any ideas?
--- Thanks, Jeff
Has anyone ran across an efficient algorithm for determining if a DateTime
or TimeSpan value falls within two other DateTime/TimeSpan values?
For example, if I have a start time of 09:00 and an end time of 21:00 and I
want to test if 16:00 is between them, this is fairly straightforward.
However, if my start time is 21:00 and my end time is 09:00 and I want to
test if 04:00 is between them, then it's not quite as straightforward.
I don't want to take the actual dates into account, only the times.
Any ideas?
--- Thanks, Jeff