scalajs-java-time is a BSD-licensed reimplementation of the java.time API of JDK8 for Scala.js. It enables this API in Scala.js projects.
Simply add the following line to your sbt settings:
libraryDependencies += "org.scala-js" %%% "scalajs-java-time" % "0.0.1-SNAPSHOT"If you have a crossProject, the setting must be used only in the JS part:
lazy val myCross = crossProject. ... jsSettings.( libraryDependencies += "org.scala-js" %%% "scalajs-java-time" % "0.0.1-SNAPSHOT" )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.
scalajs-java-time is distributed under the BSD 3-Clause license.
Follow the contributing guide.