How can I write DateTime.UtcNow.Ticks from C# in java

后端 未结 0 1813
失恋的感觉
失恋的感觉 2021-01-02 05:19

I am trying to rewrite below two lines of code from C# into Java.

long ticks1970Onwards = new DateTime(1970, 1, 1, 0, 0, 0, 0, DateTimeKind.Utc).Ticks;
 long          


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