Java tutorial
import java.time.Instant; import java.time.LocalDateTime; import java.time.ZoneOffset; public class Main { public static void main(String[] args) { LocalDateTime a = LocalDateTime.ofInstant(Instant.now(), ZoneOffset.UTC); System.out.println(a); } }