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

/* 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
	{
		OffsetDateTime epoch = OffsetDateTime.ofInstant( Instant.EPOCH , ZoneOffset.UTC ) ;
        System.out.println( epoch ) ;
        
        // Or more simply, use the constant. 
    	System.out.println( Instant.EPOCH.toString() ) ;
    	
    	// See that same moment of the epoch 1970-01-01T00:00Z as seen through the 
    	// offset used by the people of a particular region (a time zone).
    	ZoneId z = ZoneId.of( "America/Montreal" ) ;
    	ZonedDateTime zdt = Instant.EPOCH.atZone( z ) ;  // Returns a `ZonedDateTime` object. 
	    System.out.println( zdt.toString() ) ;
		
	}
}