Java Long Number to Timestamp timeString(long timestamp)

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

Description

time String

License

Open Source License

Declaration

public static String timeString(long timestamp) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

import java.text.SimpleDateFormat;

import java.util.Date;
import java.util.Locale;

public class Main {
    public static String timeString(long timestamp) {
        return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss.SSS",
                Locale.getDefault()).format(new Date(timestamp));
    }//from  w ww .j  av  a2  s. c o  m
}

Related

  1. timestamp2DateTime(long t)
  2. timestampToHumanDateAndTime(long timestamp)
  3. timestampToString(long micros)
  4. timestampToString(long time)
  5. timestampToString(long timestamp)
  6. toDateTimeString(long timestamp)
  7. toSolrTimestamp(Long epoch)
  8. unixTimestampToDate(long timestamp)
  9. unixToDate(final long timestamp)