首页
Python
Java
PHP
IOS
NodeJS
JavaScript
HTML5
小程序
AI
getEpochSecond
全部标签
java - Instant.getEpochSecond 与 Instant.toEpochMilli 背后的基本原理
关闭。这个问题是opinion-based.它目前不接受答案。想要改进这个问题?更新问题,以便editingthispost可以用事实和引用来回答它.关闭8年前。Improvethisquestion有人能解释一下Instant.getEpochSecond命名背后的基本原理吗?与Instant.toEpochMilli?我能想到的唯一原因是瞬间的内部表示是相对于纪元的秒和相对于那一秒的纳秒,而毫秒是根据这两个值计算的。但是为什么要让这样的实现细节泄露到新的API中呢?
Instant
getEpochSecond
section
noreferrer
noopener
java
java-time
Home
Powered By IT.CAOLU.XIN
页面耗时:0.044s