scala|scala DateTime 库

DateTime lib for Scala

  • nscala-time
  • joda time
  • sample code
Build file build.sbt :
libraryDependencies ++= Seq( "com.github.nscala-time" %% "nscala-time" % "2.18.0", "org.scalatest" %% "scalatest" % "3.0.4" )

【scala|scala DateTime 库】Import
import org.joda.time.DateTime import com.github.nscala_time.time.Imports._

    推荐阅读