📜  Java 代码示例中的 UTC

📅  最后修改于: 2022-03-11 14:52:38.393000             🧑  作者: Mango

代码示例1
import java.time.Instant;

Instant timestamp = Instant.now()    // gives the UTC time