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

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

import java.time.*;
import java.time.temporal.*;
import java.time.format.*;


/* 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/Montreal" );
    ZonedDateTime now = ZonedDateTime.now( z );

    LocalDate tomorrow = now.toLocalDate().plusDays(1);
    ZonedDateTime tomorrowStart = tomorrow.atStartOfDay( z );

    Duration duration = Duration.between( now , tomorrowStart );
    long millisecondsUntilTomorrow = duration.toMillis();
    
    System.out.println( "now.toString(): " + now );
    System.out.println( "tomorrowStart.toString(): " + tomorrowStart );
    System.out.println( "millisecondsUntilTomorrow: " + millisecondsUntilTomorrow );
    
	}
}