Android Time Format formatTime(long time)

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

Description

format Time

Declaration

public static String formatTime(long time) 

Method Source Code

//package com.java2s;

import android.text.format.Time;

public class Main {
    public static String formatTime(long time) {
        Time t = new Time();
        t.set(time);/*from  ww w .  jav a 2s.  c o  m*/
        return t.format("%d.%m.%Y %H:%M:%S");
    }
}

Related

  1. formatDateAndTime(int timestamp, String pattern)
  2. formatDate(String mounthStr)
  3. dateTimeFormat(String dateTime)
  4. dateTimeFormat(String dateTime)
  5. formatDateTime(String date, String format)
  6. convertDateTime(String date, String format)
  7. convertDateTime(long date, String format)
  8. getDateFromFormattedTimeStamp( String formattedTimeStamp)
  9. getFormattedTimeStamp(long millisSince1970)