Java Long Number to Timestamp timestamp2DataTime(long timestamp)

Here you can find the source of timestamp2DataTime(long timestamp)

Description

timestamp Data Time

License

Apache License

Declaration

public static String timestamp2DataTime(long timestamp) 

Method Source Code

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

import java.text.SimpleDateFormat;

public class Main {
    public static String timestamp2DataTime(long timestamp) {
        SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
        return sdf.format(Long.valueOf(timestamp));
    }/* w  w w .j a  v a 2  s .  c om*/
}

Related

  1. longToDateTime(long timestamp)
  2. prettyPrintDate(long timestamp)
  3. printTimestamp(Long c)
  4. reverseTimestampToNormalTime(long timestamp)
  5. timestamp(long time)
  6. timestamp2Date(long timestamp, String timezone)
  7. timestamp2DateTime(long t)
  8. timestampToHumanDateAndTime(long timestamp)
  9. timestampToString(long micros)