//convert year to day,hour,minutes,seconds
import java.io.*;
class ssva29
{
public static void main(String arg[]) throws IOException
{
int yy;
double dd,hr,min,sec;
BufferedReader inp=new BufferedReader(new InputStreamReader(System.in));
System.out.print("\n\nEnter the Year: ");
yy=Integer.parseInt(inp.readLine());
// note: to calculate for leap year
dd=yy*365;
hr=yy*(365*24);
min=yy*(365*24*60);
sec=yy*(365*24*60*60);
System.out.println("\nDays: "+dd+"\nHours: " + hr+"\nMinutes: "+min+ "\nSeconds: " + sec);
}
}In this program, easy to understand to calculate convert year to day, hour, minutes, seconds using Java Program.
