using range slider to select a subset of time

using range slider to select a subset of time


we have an interesting problem
we're using a range slider to show an available range of time, and
allow a user to select a subset of this time range
so the user could use the example below to select any range of time
that starts on or after 6:15 and ends before or on 12:32
6:15----------------------------12:32
we also have times that span across a day - so the slider may look
like this
19:12-------------------------4:36
can anyone think of a clever way to accomplish this - it's got me
stumped