Here you can find the source of timeString(long tickNo, long offset)
public static String timeString(long tickNo, long offset)
//package com.java2s; import java.text.DecimalFormat; import java.text.DecimalFormatSymbols; import java.util.Locale; public class Main { public static DecimalFormat timeFormat = new DecimalFormat("###.000", new DecimalFormatSymbols(Locale.US)); public static String timeString(long tickNo, long offset) { return timeFormat.format(time(tickNo, offset)); }/*from w w w. j a va 2 s . c om*/ public static float time(long tickNo, long offset) { return (float) (tickNo - offset) / (float) 600.0; } }