I have two DateTime objects:
import org.joda.time.{DateTime, Hours}
import scala.concurrent.duration._
val t1: DateTime = DateTime.now
val t2: DateTime = /* Some other time in the future */
I want to calculate the duration between the two:
val d: Duration = Duration(t2 - t1)
Obviously the code above does not work. I tried minus, but that requires a Duration, not a DateTime.
What is the easiest way to do this?