简体   繁体   English

具有scalajs的Soda Date Time:类型DateTime不是org.joda包的成员

[英]Soda Date Time with scalajs: type DateTime is not a member of package org.joda

I'm trying to use soda date time in my Play! scalajs 我正在尝试在Play! scalajs使用苏打日期时间Play! scalajs Play! scalajs application. Play! scalajs应用程序。

Soda date time

is imported (without any error) on the client side with 在客户端导入(没有任何错误)

"org.mdedetrich" %%% "soda-time" % "0.0.1-SNAPSHOT"

But when I try to use it, simply like this: 但是当我尝试使用它时,就像这样:

val dateTime = new org.joda.DateTime(new js.Date())

I get the following error: 我收到以下错误:

type DateTime is not a member of package org.joda

I don't see what I'm missing... 我看不到我想念的东西...

I was checking the source code of soda-time in GitHub and I think DateTime is under org.soda.time instead of org.soda 我正在检查GitHub中的soda-time的源代码,并且我认为DateTime在org.soda.time下,而不是org.soda下

I haven't used soda-time before, but I'm using scalajs-jsjoda for my cross js and JVM projects. 我以前没有用过苏打时间,但是我在跨js和JVM项目中使用了scalajs-jsjoda

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何解决joda-time和org.joda之间的包冲突 - How to resolve package conflict between joda-time and org.joda 类型值plusHours不是org.joda.time.DateTime的成员 - Type value plusHours is not a member of org.joda.time.DateTime Scala / Play / Joda - No Json 找到类型的序列化程序(字符串,org.joda.time.DateTime) - Scala / Play / Joda - No Json Serializer found for type (String, org.joda.time.DateTime) Eclipse项目找不到“org.joda” - Eclipse project can't find “org.joda” SODA在DB4O中查询JODA DateTime - SODA querying for JODA DateTime in DB4O Joda:将日期和时间转换为DateTime - Joda: Convert Date and Time to DateTime 将java.util.Date转换为org.joda.time.DateTime时出现IllegalArgumentException - IllegalArgumentException while converting java.util.Date to org.joda.time.DateTime 为什么scala org.joda.time.DateTime.parse在给定日期以毫秒值截断? - Why do scala org.joda.time.DateTime.parse truncate at millis value in the given date? Joda Time / Jackson 2 / Spring的反序列化问题 - 无法实例化类型[simple type,class org.joda.time.DateTime]的值 - Deserialization issues with Joda Time / Jackson 2 / Spring - Can not instantiate value of type [simple type, class org.joda.time.DateTime] 无法将类型:值:java.sql.Timestamp转换为org.joda.time.DateTime - Can't convert type: value: java.sql.Timestamp to org.joda.time.DateTime
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM