Android Second to Time calculateDhms(int seconds)

Here you can find the source of calculateDhms(int seconds)

Description

calculate Dhms

License

Apache License

Declaration

public static int[] calculateDhms(int seconds) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

public class Main {
    public static int[] calculateDhms(int seconds) {
        final int day = seconds / 86400;
        final int hour = seconds % 86400 / 3600;
        final int minute = seconds % 86400 % 3600 / 60;
        final int second = seconds % 86400 % 3600 % 60;
        return new int[] { day, hour, minute, second };
    }/*w w  w.j a  va  2  s. c  o  m*/
}

Related

  1. convertSecondsToTimeStamp(int seconds)
  2. secsToText(long time)
  3. secondsToString(int seconds)
  4. intSecondsToStringMinSec(int input)
  5. getTimeRemaining(long durationInMilliseconds)
  6. timeRemaining(double seconds)