Android Long to Date Convert getTimeLabel(long date)

Here you can find the source of getTimeLabel(long date)

Description

get Time Label

License

Open Source License

Declaration

public static String getTimeLabel(long date) 

Method Source Code

//package com.java2s;

import java.text.SimpleDateFormat;

public class Main {
    private static String TIME_FORMAT = "HH:mm";

    public static String getTimeLabel(long date) {
        SimpleDateFormat sdf = new SimpleDateFormat(TIME_FORMAT);
        return sdf.format(date);
    }/*from w  w  w .j av  a  2 s. c o  m*/
}

Related

  1. getSimpleDatetime(long milliseconds)
  2. getStandardTime(long timestamp)
  3. getStartTimeOfDay(long timeInLong)
  4. getStringOfLong(long date)
  5. getTimeInterval(long interval)
  6. getTimeLabel(long time)
  7. getTimestampDatetime(long milliseconds)
  8. getUTCTimeFromElapsedTime(long elapsedTime)
  9. getUTCTimeFromLocalMillis(long localMillis)