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"
)

Import

import org.joda.time.DateTime
import com.github.nscala_time.time.Imports._

你可能感兴趣的:(scala DateTime 库)