Java Long Number to Time convertTime(long time)

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

Description

convert Time

License

Open Source License

Declaration

public static String convertTime(long time) 

Method Source Code

//package com.java2s;

import java.text.Format;

import java.text.SimpleDateFormat;

import java.util.Date;

public class Main {
    public static String convertTime(long time) {
        Date date = new Date(time);
        Format format = new SimpleDateFormat("yyyy MM dd HH:mm:ss");
        return format.format(date).toString();
    }//w w  w .java  2  s  .  c o m
}

Related

  1. convertMillisToHHMMSS(long millis)
  2. convertMillsToDateString(long currentTimeMillis)
  3. convertTime(long difference)
  4. convertTime(long time)
  5. convertTime(Long time)
  6. convertTime(long time)
  7. convertTime(long time)
  8. convertTime(long value)
  9. convertTime(long x)