Java Long Number to Time time2Date(Long time)

Here you can find the source of time2Date(Long time)

Description

time Date

License

Apache License

Declaration

public static String time2Date(Long time) 

Method Source Code


//package com.java2s;
//License from project: Apache License 

import java.text.SimpleDateFormat;

public class Main {

    public static String time2Date(Long time) {
        SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd");
        if (time != null) {
            String date = format.format(time);
            return date;
        }//from  w ww .  ja va2 s .  c o  m
        return null;

    }
}

Related

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