Open LuckyKoala opened 5 years ago
https://twodam.net/java-timestamp-and-timezone#more
在某群看到有人提了一个时间戳与时区时间转换的问题,当时就看出他的计算方式有问题,但是对相关概念有些模糊,今天想起来就整理了一下这个问题。 加减时间戳12345678910111213141516Instant instantPlusEightHours = Instant.now().plus(8, ChronoUnit.HOURS);Instant now = Instant.now();S
https://twodam.net/java-timestamp-and-timezone#more
在某群看到有人提了一个时间戳与时区时间转换的问题,当时就看出他的计算方式有问题,但是对相关概念有些模糊,今天想起来就整理了一下这个问题。 加减时间戳12345678910111213141516Instant instantPlusEightHours = Instant.now().plus(8, ChronoUnit.HOURS);Instant now = Instant.now();S