Android Long to Date Convert getStandardTime(long timestamp)

Here you can find the source of getStandardTime(long timestamp)

Description

get Standard Time, "MM/dd/HH:mm"

Declaration

public static String getStandardTime(long timestamp) 

Method Source Code

//package com.java2s;

import java.text.SimpleDateFormat;

import java.util.Date;

public class Main {
    public static String getStandardTime(long timestamp) {
        SimpleDateFormat sdf = new SimpleDateFormat("MM/dd/HH:mm");
        Date date = new Date(timestamp * 1000);
        sdf.format(date);//from  w ww .j av a2 s .  c  o  m
        return sdf.format(date);
    }
}

Related

  1. getRelativeDateLabel(long time)
  2. getRelativeTimeFromMilliSeconds(long dateInMillis)
  3. getShortDateString(long date, Locale locale)
  4. getShortDateTimeString(long date, Locale locale)
  5. getSimpleDatetime(long milliseconds)
  6. getStartTimeOfDay(long timeInLong)
  7. getStringOfLong(long date)
  8. getTimeInterval(long interval)
  9. getTimeLabel(long date)