https://github.com/scala-js/scala-js-java-time
Scala.js implementation for java.time in JDK8
https://github.com/scala-js/scala-js-java-time
Last synced: 7 months ago
JSON representation
Scala.js implementation for java.time in JDK8
- Host: GitHub
- URL: https://github.com/scala-js/scala-js-java-time
- Owner: scala-js
- License: bsd-3-clause
- Created: 2016-01-20T10:56:38.000Z (almost 10 years ago)
- Default Branch: main
- Last Pushed: 2021-12-01T10:36:27.000Z (almost 4 years ago)
- Last Synced: 2024-03-27T01:12:52.149Z (over 1 year ago)
- Language: Scala
- Size: 137 KB
- Stars: 87
- Watchers: 18
- Forks: 38
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# scalajs-java-time (deprecated)
[](https://github.com/scala-js/scala-js-java-time/actions/workflows/ci.yml)
[](https://www.scala-js.org/)
[](https://www.scala-js.org)
`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:
* [scala-java-time](https://github.com/cquiroz/scala-java-time) (recommended): like this project, but better
* [scalajs-jsjoda](https://github.com/zoepepper/scalajs-jsjoda): implementation of `java.time` on top of the JavaScript library [js-joda](https://github.com/js-joda/js-joda)
Issues will *not* be worked on.
Pull requests *may* be reviewed and merged.
## Usage
Add the following line to your sbt settings:
```scala
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:
```scala
lazy val myCross = crossProject
...
.jsSettings(
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.
## License
`scalajs-java-time` is distributed under the
[BSD 3-Clause license](./LICENSE.txt).
## Contributing
Follow the [contributing guide](./CONTRIBUTING.md).