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

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

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


/* 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
	{

    long millis = System.currentTimeMillis() ; 
    Instant instant = Instant.ofEpochMilli( millis );  

    ZoneId z = ZoneId.of( "Europe/Rome" );
    ZonedDateTime zdt = instant.atZone( z );

    Locale l = Locale.ITALY ;
    DateTimeFormatter f = DateTimeFormatter.ofLocalizedDateTime( FormatStyle.SHORT ).withLocale( l ) ;
    String output = zdt.format( f );

    DateTimeFormatter fCustom = DateTimeFormatter.ofPattern( "dd/MM/uuuu HH:mm:ss" ).withLocale( l ) ;
    String output2 = zdt.format( fCustom );

    System.out.println( "millis: " + millis );
    System.out.println( "instant.toString(): " + instant );
    System.out.println( "zdt.toString(): " + zdt );
    System.out.println( "output: " + output );
    System.out.println( "output2: " + output2 );

	}
}