you program?
you program?
- Started
- Last post
- 1 Response
- o0o
do you?
ok, here's a simple exercise:I have four dates
date_a1, date_a2, date_b1, and date_b2..
what's the most efficient way to figure out if the time span a1-a2 overlaps the span b1-b2 ?
- mrming0
Your best bet would be to use timestamps.
Failing that, work the date back to a number of seconds since a time in the past (e.g. midnight Jan 1st 2000). Then compare away!