jorgeortiz85/scala-time — pull request #21 by wookietreiber (2012-03-28 19:33:52+00:00)
Title: adds an implicit val for Ordering[DateTime]

OLD:

scala> import org.scala_tools.time.Imports._
import org.scala_tools.time.Imports._

scala> val l = List(DateTime.now)
l: List[org.joda.time.DateTime] = List(2012-03-28T21:21:38.573+02:00)

scala> l min
:64: error: No implicit Ordering defined for org.joda.time.DateTime.
l min
^

NEW:

scala> import org.scala_tools.time.Imports._
import org.scala_tools.time.Imports._

scala> val l = List(DateTime.now)
l: List[org.joda.time.DateTime] = List(2012-03-28T21:22:12.842+02:00)

scala> l min
res0: org.joda.time.DateTime = 2012-03-28T21:22:12.842+02:00