Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

scalaJS support #82

Open
antonkulaga opened this issue Jan 12, 2015 · 17 comments
Open

scalaJS support #82

antonkulaga opened this issue Jan 12, 2015 · 17 comments

Comments

@antonkulaga
Copy link

At the moment ScalaJS allows to use either javascript Date class or java.util.Date classes. That is why for cross scala-scalajs libraries one has to use only terrible default java.util.Date class :-(

@kmizu
Copy link

kmizu commented Jan 17, 2015

I think so, too. However, since nscala-time heavily depends on joda-time, unless joda-time for JavaScript (:- is provided, We cannot support scalaJS.

@kmizu kmizu closed this as completed Feb 6, 2015
@wookietreiber
Copy link
Contributor

Is there a label for maybe in the future or depends on external stuff? I would attach this to this issue.

@kmizu
Copy link

kmizu commented Feb 7, 2015

Hmmm. Certainly, there should be such label.

@kmizu
Copy link

kmizu commented Feb 7, 2015

@wookietreiber A little while ago, I created a label maybe_in_the_future and I attached it to this issue and I reopened this issue. Are you satisfied with this?

@kmizu kmizu reopened this Feb 7, 2015
@wookietreiber
Copy link
Contributor

Yeah, sure, looks good.

@wookietreiber
Copy link
Contributor

I don't know much about how scala-js works, but just as a thought: Will scala-js support come easier if #85 gets implemented? I.e. is it possible with scala-js to make use of the std java stuff?

@xuwei-k
Copy link
Member

xuwei-k commented Feb 26, 2015

Will scala-js support come easier if #85 gets implemented? I.e. is it possible with scala-js to make use of the std java stuff?

I don't think so. scala-js does not support Java8 datetime API yet. see https://github.com/scala-js/scala-js/tree/v0.6.4/javalib/src/main/scala/java

@mdedetrich
Copy link

Just letting you guys know, that I am creating a port of jodatime to Scala/Scala.js. Currently in very alpha stage (got it to compile!), but that may be another avenue to get nscala-time to work on Scala.js

@bchazalet
Copy link

@mdedetrich do you have anything to share at this stage? I'm curious

@mdedetrich
Copy link

@bchazalet As per what was said on gitter, the project is currently compiling, but some parts need to be rewritten (some business logic that used break/continue/continue to label is broken).

When this is done, I will upload it onto github, but more modifications will need to be done to actually get it to work with Scala.js.

Thankfully its at a stage where a lot of the grunt work has been done. Expect a push in probably a week

@mdedetrich
Copy link

Hey guys (and @bchazalet ), just letting you know that i have done an early release of Soda-Time, which is the port of Joda-Time to Scala/Scala.js. Its still in alpha stage, but since so many people were asking for it, I released it early

https://github.com/mdedetrich/soda-time

@bchazalet
Copy link

@mdedetrich that's great news, I will definitely have a look !

@xuwei-k
Copy link
Member

xuwei-k commented Dec 18, 2015

I don't think so. scala-js does not support Java8 datetime API yet. see https://github.com/scala-js/scala-js/tree/v0.6.4/javalib/src/main/scala/java

scala-js will support Java8 time https://github.com/scala-js/scala-js/tree/6a6b4f72b/javalib/src/main/scala/java/time

@xuwei-k
Copy link
Member

xuwei-k commented Jan 23, 2016

@xuwei-k
Copy link
Member

xuwei-k commented Jul 30, 2016

@xuwei-k
Copy link
Member

xuwei-k commented Aug 15, 2016

@nafg
Copy link

nafg commented Nov 27, 2016

@kmizu haven't you seen js-joda?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

7 participants