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

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

import java.time.* ;
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
	{
		LocalDateTime ldt = LocalDateTime.parse( "2021-09-16T12:00" ) ;
		ZonedDateTime zdtAbidjan = ldt.atZone( ZoneId.of( "Africa/Abidjan" ) ) ;
		ZonedDateTime zdtLondon = zdtAbidjan.withZoneSameInstant( ZoneId.of( "Europe/London" ) ) ;
		Instant instant = zdtAbidjan.toInstant() ;  // Adjust to UTC by extracting an `Instant` object.

		System.out.println( "ldt: " + ldt ) ;
		System.out.println( "zdtAbidjan: " + zdtAbidjan ) ;
		System.out.println( "zdtLondon: " + zdtLondon ) ;
		System.out.println( "instant: " + instant ) ;
		
		ZoneId z = ZoneId.of( "Africa/Abidjan" ) ;
		ZoneRules rules = z.getRules() ;
		ZoneOffset offset = rules.getOffset( LocalDateTime.parse( "2021-09-16T12:00" ) ) ;
		int offsetInSeconds = offset.getTotalSeconds() ;
		
		System.out.println( "rules: " + rules ) ;
		System.out.println( "offset: " + offset ) ;
		System.out.println( "offsetInSeconds: " + offsetInSeconds ) ;
	}
}