How to substract a day/hour/minute from joda-time DateTime in Scala?

前端 未结 2 1320
南笙
南笙 2021-01-18 04:37

I am trying to use joda-time with its Scala wrapper.

Saying val dt is a DateTime and contains a date (zero time), how do I get

2条回答
  •  傲寒
    傲寒 (楼主)
    2021-01-18 05:26

    It seems that the code cannot find the implicit conversions. Are you sure you import org.scala_tools.time.Imports._ in the scope that you are using it?

提交回复
热议问题