Java Milliseconds timeToTag(long milliSeconds)

Here you can find the source of timeToTag(long milliSeconds)

Description

time To Tag

License

Open Source License

Declaration

public static String timeToTag(long milliSeconds) 

Method Source Code


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

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

public class Main {
    public static String timeToTag(long milliSeconds) {
        SimpleDateFormat sdf = new SimpleDateFormat("mm:ss.SS");
        Date d = new Date(milliSeconds);
        String text = sdf.format(d);
        text = text.substring(0, text.length() - 1);
        return text;
    }//from w  ww.  j  a v a2 s .c  om
}

Related

  1. timeSinceMillis(long timestart)
  2. timespanToMillis(String timeString)
  3. timestampToString(long lastModifiedMillis)
  4. timeToMilliseconds(Object unit, long interval)
  5. timeToString(long timeMillis)
  6. toMillis(String ts)
  7. toSpacelessDateString(long millisSinceEpoch)
  8. ToSting(Long milliSecond)
  9. toTime(long milli)