Skip to content

Latest commit

 

History

History
46 lines (31 loc) · 1.35 KB

README.md

File metadata and controls

46 lines (31 loc) · 1.35 KB

scalajs-java-time

Build Status Scala.js

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.

Usage

Simply add the following line to your sbt settings:

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

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.2.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.

Work in Progress / linking errors

This library is a work in progress. There are still many classes and methods that have not been implemented yet. If you use any of those, you will get linking errors.

Feel free to contribute to extend the set of supported classes and methods!

License

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

Contributing

Follow the contributing guide.