title: Can not convert milliseconds to seconds as expected
body: <p>Hi i need to convert milliseconds (1437790538 its 25 july 2015) to seconds but when i trying to convert seconds then it not work i get irrelevant result.From last two days very stressed from these result.</p>
  
  <p>i have use this code for doing this purpose</p>
  
  <pre><code>              long duration_seconds  = 1437790538;
  
              Calendar calendar = Calendar.getInstance();
                  TimeZone tz = TimeZone.getDefault();
                  calendar.setTimeInMillis(duration_seconds * 1000);
                  calendar.add(Calendar.MILLISECOND,
                          tz.getOffset(calendar.getTimeInMillis()));
                   SimpleDateFormat sdf = new
                   SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
  
                  Date currenTimeZone = (Date) calendar.getTime();
                  String resultabc = sdf.format(currenTimeZone);
  
                  long curMillis = currenTimeZone.getTime() / 1000;
  </code></pre>
  
  <p>//                  long seconds = (curMillis/ 1000) % 60;</p>
  
  <pre><code>                Log.e("test", "datee1 :" + resultabc + " , " + curMillis + " , " + seconds);
  
                  getDurationBreakdown(curMillis);
  
                  calculateTime(seconds);
  </code></pre>
  
  <p>after i need to calculate total time of post like this</p>
  
  <pre><code>public static void calculateTime(long seconds) {
  
      int day1 = (int) TimeUnit.SECONDS.toDays(seconds);
      long hours1 = TimeUnit.SECONDS.toHours(seconds) - (day1 * 24);
      long minute1 = TimeUnit.SECONDS.toMinutes(seconds)
              - (TimeUnit.SECONDS.toHours(seconds) * 60);
      long second1 = TimeUnit.SECONDS.toSeconds(seconds)
              - (TimeUnit.SECONDS.toMinutes(seconds) * 60);
  
      Log.e("test", "time interval ::" + "Day " + day1 + " Hour " + hours1
              + " Minute " + minute1 + " Seconds " + second1);
      // int days, hours, mins, seconds, justnow;
      days = (int) day1;
      hours = (int) hours1;
      mins = (int) minute1;
      seconds = (int) second1;
  
      System.out.println("Day " + day1 + " Hour " + hours1 + " Minute1 "
              + minute1 + " Seconds " + second1);
   public static String getDurationBreakdown(long millis)
      {
          if(millis &lt; 0)
          {
              throw new IllegalArgumentException("Duration must be greater than zero!");
          }
  
          long days = TimeUnit.MILLISECONDS.toDays(millis);
          millis -= TimeUnit.DAYS.toMillis(days);
          long hours = TimeUnit.MILLISECONDS.toHours(millis);
          millis -= TimeUnit.HOURS.toMillis(hours);
          long minutes = TimeUnit.MILLISECONDS.toMinutes(millis);
          millis -= TimeUnit.MINUTES.toMillis(minutes);
          long seconds = TimeUnit.MILLISECONDS.toSeconds(millis);
  
          StringBuilder sb = new StringBuilder(64);
          sb.append(days);
          sb.append(" Days ");
          sb.append(hours);
          sb.append(" Hours ");
          sb.append(minutes);
          sb.append(" Minutes ");
          sb.append(seconds);
          sb.append(" Seconds");
  
          Log.e("test", "time interval" + sb.toString());
  
          return(sb.toString());
      }
  
  }
  </code></pre>
  
  <p>both methods giving wrong result. 
  if anybody have idea how to do this thing in correct way please help me out this problem..
  thanks in advance</p>