scalajs-java-time (deprecated)

CI Scala.js Scala.js

scalajs-java-time is a BSD-licensed partial reimplementation of the java.time API of JDK8 for Scala.js.

This project is incomplete and has stalled

This project is very incomplete and efforts to expand it have stalled. Consider using one of the following alternatives instead:

Issues will not be worked on.

Pull requests may be reviewed and merged.


Add the following line to your sbt settings:

libraryDependencies += "org.scala-js" %%% "scalajs-java-time" % "1.0.0"

If you have a crossProject, the setting must be used only in the JS part:

lazy val myCross = crossProject
    libraryDependencies += "org.scala-js" %%% "scalajs-java-time" % "1.0.0"

Requirement: you must use a host JDK8 to build your project, i.e., to launch sbt. scalajs-java-time does not work on earlier JDKs.

Linking errors

This library is very incomplete. There are many classes and methods that have not been implemented yet. If you use any of those, you will get linking errors.

Consider using on the alternatives mentioned above.


scalajs-java-time is distributed under the BSD 3-Clause license.


Follow the contributing guide.