Add the following dependency to your build.sbt
:
libraryDependencies +=
"io.github.widok" %%% "scala-js-momentjs" % "0.1.4"
import org.widok.moment._
Moment.locale("en_GB")
Moment().calendar()
Moment(millis).calendar()
Moment(millis).fromNow()
This façade is licensed under the terms of the Apache v2.0 license.
- Tim Nieradzik