LoginSignup
1
1

More than 5 years have passed since last update.

jodaのDateTimeのソート

Last updated at Posted at 2015-07-16

object Joda {
    implicit def dateTimeOrdering: Ordering[DateTime] = Ordering.fromLessThan(_ isBefore _)
}

// elsewhere
import Joda._
dateTimes.sorted

ついでにDefault Timezone

JodaのTimezoneはJDKのを見てて、JDKはOSのを見てて、というJAVAが知らない人の調査結果です。

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1