Java Milliseconds ToSting(Long milliSecond)

Here you can find the source of ToSting(Long milliSecond)

Description

To Sting

License

Open Source License

Declaration

public static String ToSting(Long milliSecond) 

Method Source Code


//package com.java2s;

import java.text.SimpleDateFormat;

public class Main {

    public static String ToSting(Long milliSecond) {
        SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
        return sdf.format(milliSecond);
    }/*from  w w  w. ja  v a  2 s.  c  om*/
}

Related

  1. timeToMilliseconds(Object unit, long interval)
  2. timeToString(long timeMillis)
  3. timeToTag(long milliSeconds)
  4. toMillis(String ts)
  5. toSpacelessDateString(long millisSinceEpoch)
  6. toTime(long milli)
  7. truncateMillisecond(Date date)
  8. trySleepMillis(int millis)
  9. unixToDosTime(long timeMillis)