Using Instant/ChronoUnit to get the time in nanos-since-epoch at midnight today is 24 hours ahead of using GregorianCalendar/Date

前端 未结 0 574
自闭症患者
自闭症患者 2021-02-14 09:49

I\'m attempting to get today\'s date in nanos since Epoch at midnight (e.g. 13 Feb 2021 00:00:00).

Using GregorianCalendar/Date appears to get the right result.

Th

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