How to use scala-time?

后端 未结 4 2034
野的像风
野的像风 2021-02-15 15:46

somebody know scala-time? (https://github.com/jorgeortiz85/scala-time) Have no idea how to use it. I can download it (on linux) and run sbt but theres always the same errormessa

4条回答
  •  深忆病人
    2021-02-15 16:17

    To actually use it (as compared to building scala-time yourself), just add

    libraryDependencies += "org.scala-tools.time" % "time_2.9.1" % "0.5"
    

    to the build.sbt of the project you want to use it in.

    Addition:

    Current versions may want to use

    libraryDependencies += "org.scalaj" %% "scalaj-time" % "0.6"
    

提交回复
热议问题