Skip to content

Instantly share code, notes, and snippets.

@theodesp
Created Mar 11, 2020
Embed
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 = 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