Java Hour Format formatRawDateTime(int unixtime)

Here you can find the source of formatRawDateTime(int unixtime)

Description

format Raw Date Time

License

Apache License

Declaration

public static String formatRawDateTime(int unixtime) 

Method Source Code


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

import java.text.DateFormat;

import java.text.SimpleDateFormat;
import java.util.Date;

public class Main {
    static final DateFormat DATE_TIME_FORMAT = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");

    public static String formatRawDateTime(int unixtime) {
        return DATE_TIME_FORMAT.format(new Date(unixtime * 1000L));
    }/*from   w w w  .ja  v a2  s  .c  om*/
}

Related

  1. formatNanosTimeUSEastern(long nanos)
  2. formatNewDate(String format)
  3. formatOffset(int offset)
  4. formatOptimal(Date d)
  5. formatPrice(double price, String style)
  6. formatRecyclingDate(String strDate)
  7. formatRFC1123(Date date)
  8. formatRfc3339Date(Date date)
  9. formatRFC822(Date date)