/* package whatever; // don't place package name! */

import java.util.*;
import java.lang.*;
import java.io.*;

import java.time.* ;
import java.time.format.*;

/* Name of the class has to be "Main" only if the class is public. */
class Ideone
{
	public static void main (String[] args) throws java.lang.Exception
	{
		/*Instant instant = Instant.parse( "2020-01-23T00:00:00Z" );
		ZoneId z = ZoneId.of( "America/Edmonton" );
		LocalDate ld = LocalDate.ofInstant( instant , z );
		
		System.out.println( "ld.toString() = " + ld );*/
		Instant instant = Instant.now();

        // Convert Instant to LocalDateTime using the system's default time zone
        LocalDateTime localDateTime = LocalDateTime.ofInstant(instant, ZoneId.systemDefault());

        // Format LocalDateTime (optional, for custom output)
        DateTimeFormatter formatter = DateTimeFormatter.ofPattern("MM/dd/yy HH:mm:ss.SSSSSS");
        String formattedDateTime = localDateTime.format(formatter);

        // Print the LocalDateTime (formatted or unformatted)
        System.out.println("Instant: " + instant);
        System.out.println("LocalDateTime: " + localDateTime);
        System.out.println("Formatted LocalDateTime: " + formattedDateTime);
	}
}