Java Time Format time2Date(Integer time, String format)

Here you can find the source of time2Date(Integer time, String format)

Description

time Date

License

Apache License

Declaration

public static String time2Date(Integer 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 time2Date(Integer time, String format) {
        String date = "";
        SimpleDateFormat sdf = new SimpleDateFormat(format);
        date = sdf.format(new Date(time * 1000l));
        return date;

    }//w w  w .  j  a v  a2 s .  c  o m
}

Related

  1. string2Long(String sourceTime, String dataFormat)
  2. string2long(String sourceTime, String dataFormat)
  3. stringDateTimeFormat(String dt2Format)
  4. stringTimeToLongTime(String time, String format)
  5. stringToTime(String format, String sDate)
  6. time2String(Date time, DateFormat dateFormat)
  7. timeFormatDate(Date d)
  8. timeFormatNano(long delta)
  9. timeFormatter()