/* 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
	{
        ZoneId z = ZoneId.of( "America/Santiago" );
        LocalDate ld = LocalDate.of( 2015 , Month.MARCH , 31 );
        LocalTime lt = LocalTime.of( 7 , 45 , 0 , 0 );
        ZonedDateTime zdt = ZonedDateTime.of( ld , lt , z );

        Instant instant = zdt.toInstant();

        ZoneRules rules = z.getRules();

        ZoneOffset offset = rules.getOffset( instant );


        boolean isDst = rules.isDaylightSavings( instant );
        Duration d = null;
        if ( isDst )
        {
            d = rules.getDaylightSavings( instant );
        }

        System.out.println( "zdt = " + zdt );
        System.out.println( "instant = " + instant );
        System.out.println( "offset = " + offset );
        System.out.println( "isDst = " + isDst );
        System.out.println( "d = " + d );
	}
}