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

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

import java.time.* ;
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
	{
	    Instant instant = Instant.now() ; // Capture current moment, for the sake of a demonstration.
	    String output = instant.toString() ;
	    
	    System.out.println( "output = " + output ) ;
	    
	    java.util.Date myJavaUtilDate = java.util.Date.from( Instant.now() ) ;
	    Instant i = myJavaUtilDate.toInstant() ;
	    i = i.truncatedTo( ChronoUnit.SECONDS ) ;
	    String output2 = i.toString().replace( "Z" , "" ) ;
	    
	    System.out.println( "output2 = " + output2 ) ;
	}
}