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

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

/* 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 created = Instant.ofEpochMilli( 1_636_334_664_000L ) ;
		Instant modified = Instant.ofEpochMilli( 1_636_334_664_001L ) ;
		Duration duration = Duration.between( created , modified ) ;
	    
		System.out.println( created ) ;
		System.out.println( modified ) ;
		System.out.println( duration ) ;
		
		ZoneId z = ZoneId.of( "Asia/Tokyo" ) ;
    	ZonedDateTime zdtModifiedTokyo = modified.atZone( z ) ;
    	
    	System.out.println( "zdtModifiedTokyo.toString(): " + zdtModifiedTokyo ) ;
		
		System.out.println(
			Instant.ofEpochMilli( 1_636_334_664_001L ).toString()
		);
	}
}