Skip to content

Instantly share code, notes, and snippets.

Created Mar 11, 2020
What would you like to do?
UTC in Java
package com.thdespou;
import java.time.Instant;
public class Main {
public static void main(String[] args) {
Instant now =;
System.out.println("Date is " + now);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment