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

前端 未结 2 1324
南笙
南笙 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:27

    Seems to be a bug of NetBeans IDE. It shows the error, while compiler compiles ok and the program works as expected with "dt - 1.days" syntax.

提交回复
热议问题