Android Long to Date Convert getUTCTimeFromElapsedTime(long elapsedTime)

Here you can find the source of getUTCTimeFromElapsedTime(long elapsedTime)

Description

get UTC Time From Elapsed Time

Declaration

public static String getUTCTimeFromElapsedTime(long elapsedTime) 

Method Source Code

//package com.java2s;

import java.text.SimpleDateFormat;

import java.util.Date;

import android.os.SystemClock;

public class Main {
    private final static SimpleDateFormat formatter = new SimpleDateFormat(
            "dd/HH:mm:ss");

    public static String getUTCTimeFromElapsedTime(long elapsedTime) {
        return formatter.format(new Date(System.currentTimeMillis()
                - (SystemClock.elapsedRealtime() - elapsedTime)));
    }/*from ww  w  . ja v a 2s  . c  o  m*/
}

Related

  1. getStringOfLong(long date)
  2. getTimeInterval(long interval)
  3. getTimeLabel(long date)
  4. getTimeLabel(long time)
  5. getTimestampDatetime(long milliseconds)
  6. getUTCTimeFromLocalMillis(long localMillis)
  7. getUTCandRelativeDateFromElapsedTime( long elapsedTime)
  8. getUTCandRelativeDateFromElapsedTime( long elapsedTime)
  9. getUniversalDateStamp(long time)