Android Long to Date Convert timeInMillisecondsToDateStringFull( long timeInMilliseconds)

Here you can find the source of timeInMillisecondsToDateStringFull( long timeInMilliseconds)

Description

time In Milliseconds To Date String Full

Declaration

public static String timeInMillisecondsToDateStringFull(
            long timeInMilliseconds) 

Method Source Code

//package com.java2s;
import java.text.SimpleDateFormat;
import java.util.Date;

public class Main {
    public static final String DEFAULT_FORMAT_PATTERN = "EEEE, MMMM dd, yyyy HH:mm:ss.SSS";

    public static String timeInMillisecondsToDateStringFull(
            long timeInMilliseconds) {
        SimpleDateFormat formatter = new SimpleDateFormat(
                DEFAULT_FORMAT_PATTERN);
        Date date = timeInMillisecondsToDate(timeInMilliseconds);
        formatter.format(date);/*www .  java2s.com*/
        return formatter.format(date);
    }

    protected static Date timeInMillisecondsToDate(long timeInMilliseconds) {
        Date date = new Date(timeInMilliseconds);
        return date;
    }
}

Related

  1. millisToShortDHMS(long duration)
  2. nextDate(long timeMilliSeconds)
  3. parseMills2Time(long elapsedMills)
  4. shortFromUtc(long milliseconds)
  5. timeInMillisToText(final long totalTimeInMillis)
  6. timestampToDate(long timeStamp)
  7. timestampToDate(long timeStamp)
  8. timestampToISO8601(long aTime)
  9. timestampToIso8601Str(long timestamp)