Android Long to Date Convert transformDateTime(long t)

Here you can find the source of transformDateTime(long t)

Description

transform Date Time

Declaration

public static String transformDateTime(long t) 

Method Source Code

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

public class Main {
    public static String transformDateTime(long t) {
        Date date = new Date(t);
        SimpleDateFormat dateFormat = new SimpleDateFormat(
                "yyyy-MM-dd HH:mm:ss");
        return dateFormat.format(date);
    }//from  ww w  . j  a  va  2  s  .  c o m
}

Related

  1. humanFriendlyDate(long time)
  2. longToDate(long timestamp)
  3. millToDate(Long mill)
  4. toDateFromTimestamp(long date)
  5. transMillionToTime(long milliseconds)
  6. millis2cal(long milliseconds, boolean clearTime)
  7. millisToString(long l)
  8. stdDateFormat(long t)
  9. formatElapsedTime(long totalTimeSeconds)