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

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

/* 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() ;

        ZoneOffset offset = ZoneId.of( "Africa/Dar_es_Salaam" ).getRules().getOffset( instant ) ;
        OffsetDateTime odt = OffsetDateTime.now( offset ) ;

        ZoneId zone = ZoneId.of( "Africa/Dar_es_Salaam" ) ;
        ZonedDateTime zonedDateTime = ZonedDateTime.now( zone ) ;

        System.out.println( instant + " | " + instant.getEpochSecond() ) ;
        System.out.println( odt + " | " + odt.toEpochSecond() ) ;
        System.out.println( zonedDateTime + " | " + zonedDateTime.toEpochSecond() ) ;  
	}
}