Java Long Number to Time time2DATETIME(long time)

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

Description

time DATETIME

License

Open Source License

Declaration

public static String time2DATETIME(long time) 

Method Source Code


//package com.java2s;
//License from project: Open Source License 

import java.text.SimpleDateFormat;

import java.util.Date;

public class Main {
    public static String time2DATETIME(long time) {
        SimpleDateFormat fmt = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
        Date d = new Date(time);
        return "\"" + fmt.format(d) + "\"";
    }//w w w . j a v a 2s.c o m
}

Related

  1. printExecutionTime(long startTime, long endTime, String className, String methodName)
  2. str2Long(String time)
  3. stringTime(long time)
  4. stringTolong(String time)
  5. time2Date(Long time)
  6. toLong(String time)
  7. toLongString(long ms)
  8. toTextTime(long time)
  9. transformDateTime(long t)