Java Long Number to Time convertLong2String(Long time, String format)

Here you can find the source of convertLong2String(Long time, String format)

Description

convert Long String

License

Apache License

Declaration

public static String convertLong2String(Long time, String format) 

Method Source Code

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

import java.text.SimpleDateFormat;

import java.util.Date;

public class Main {
    public static String convertLong2String(Long time, String format) {
        SimpleDateFormat formatter = new SimpleDateFormat(format);
        Date myDate = new Date(time);
        return formatter.format(myDate);
    }//from   w w  w .  j  av  a  2s  .c  om
}

Related

  1. addMinTime(long time, String addMin)
  2. calcTime(final long totalTime)
  3. convertLongDate(long lDate, String format)
  4. convertLongTimeStampToString(long localTimeStamp)
  5. convertLongTimeToText(Long time)
  6. convertLongToTimestampString(String dateFormat, Long millSec)