/* 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.*;
import java.time.zone.*;
import java.util.concurrent.*;

/* 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 ();
        try {
            Thread.sleep ( 3_500L );  // Wait about three and a half seconds.
        } catch ( InterruptedException ex ) {
            System.out.println ( "Thread sleep interrupted." );
        }
        Instant instantLater = Instant.now ();
        Duration duration = Duration.between ( instant , instantLater );
        
            ZoneId z = ZoneId.of( "America/Montreal" );
    ZonedDateTime zdt = instant.atZone( z );

        System.out.println ( "instant.toString()/instantLater.toString(): " + instant + "/" + instantLater );
        System.out.println ( "duration.toString(): " + duration );
        System.out.println ( "zdt.toString(): " + zdt );
	}
}