How to replace seconds to 00 in OffsetDateTime.now()

前端 未结 0 818
独厮守ぢ
独厮守ぢ 2021-02-12 05:02

I am using below code to remove milliseconds and set the seconds to zero but it does not set seconds to zero

**time = OffsetDateTime.now().truncatedTo(ChronoUnit.         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题