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

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

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

/* 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
	{
		// The easy way.
		Instant instant = Instant.ofEpochSecond( 1_602_934_899L ) ;
		int h = instant.atOffset( ZoneOffset.UTC ).getHour() ;
		Duration d = Duration.between( Instant.EPOCH , instant ) ;
		
		System.out.println( instant ) ;
		System.out.println( h ) ;
		System.out.println( d ) ;
		System.out.println( d.toDaysPart() + " days, " +  d.toHoursPart() + " hours, " + d.toMinutesPart() + " minutes, " +  d.toSecondsPart() + " seconds, " +  d.toNanosPart() + " nanos." ) ;
		
		// The hard way.
		long days = ( 1_602_934_899L / ( 60 * 60 * 24 ) ) ;
		long secondsInPartialDay = ( 1_602_934_899L % ( 60 * 60 * 24 ) ) ;
		long hour = ( secondsInPartialDay / ( 60 * 60 ) ) ;
		
		System.out.println( "days = " + days ) ;
		System.out.println( "secondsInPartialDay = " + secondsInPartialDay ) ;
		System.out.println( "hour = " + hour ) ;
		
		System.out.println(
			( 1_602_934_899L % ( 60 * 60 * 24 ) ) / ( 60 * 60 )
		);
	}
}