Android Time Format timeFormatToString(int paramInt)

Here you can find the source of timeFormatToString(int paramInt)

Description

time Format To String

Declaration

public static String timeFormatToString(int paramInt) 

Method Source Code

//package com.java2s;

public class Main {
    public static String timeFormatToString(int paramInt) {
        StringBuffer localStringBuffer = new StringBuffer();
        int i = paramInt / 1000;
        int j = i / 3600;
        int l;/*  w  w  w .  ja va  2 s  . c  o m*/
        int i1;
        if (j >= 10) {
            localStringBuffer.append(j);
        } else {
            localStringBuffer.append("0").append(j);
        }
        int k = i % 3600;
        l = k / 60;
        if (l < 10) {
            localStringBuffer.append(":0").append(l);
        } else {
            localStringBuffer.append(":").append(l);
        }
        i1 = k % 60;
        if (i1 < 10) {
            localStringBuffer.append(":0").append(i1);
        } else {
            localStringBuffer.append(":").append(i1);
        }
        return localStringBuffer.toString();
    }
}

Related

  1. convertDateTime(long date, String format)
  2. getDateFromFormattedTimeStamp( String formattedTimeStamp)
  3. getFormattedTimeStamp(long millisSince1970)
  4. getRFC3339FormattedTime()
  5. get_current_date_time_format1_str()
  6. timeLongToHhmm(long timeMillis, DateFormat df)
  7. toModifiedTimeString(Date modified)
  8. convertDateTime(String date)
  9. convertDateTime(long date)