Android Long to Date Convert getUpdateTimeStr(long time)

Here you can find the source of getUpdateTimeStr(long time)

Description

get Update Time Str

Declaration

public static String getUpdateTimeStr(long time) 

Method Source Code

//package com.java2s;

import java.text.SimpleDateFormat;

import java.util.Date;

public class Main {
    private static final String UPDATE_TIME_STR_FORMAT = "yyyy??MM??dd?? HH:mm";

    public static String getUpdateTimeStr(long time) {
        SimpleDateFormat dateFormat = new SimpleDateFormat(
                UPDATE_TIME_STR_FORMAT);
        Date d = new Date(time);
        return dateFormat.format(d);
    }/* w  ww .  j  a  v  a  2 s.com*/
}

Related

  1. getUTCTimeFromLocalMillis(long localMillis)
  2. getUTCandRelativeDateFromElapsedTime( long elapsedTime)
  3. getUTCandRelativeDateFromElapsedTime( long elapsedTime)
  4. getUniversalDateStamp(long time)
  5. getUpdateDateStr(long time)
  6. getYear(long dateTimeMillis)
  7. hrColMin(final long time, final boolean alwaysIncludeHours)
  8. hrColMinColSec(final long time, final boolean alwaysIncludeHours)
  9. isAtMostNMonthsAgo(long date, int howMany)