debug Format Time - Android java.util

Android examples for java.util:Date Time

Description

debug Format Time

Demo Code


//package com.java2s;

import java.text.SimpleDateFormat;

public class Main {
    private static final String DEBUG_DATE_FORMAT = "MM-dd HH:mm:ss:SSS";

    public static String debugFormatTime(long time) {
        SimpleDateFormat dateFormat = new SimpleDateFormat(
                DEBUG_DATE_FORMAT);// www .  j  a  v  a 2  s .c  o  m
        return dateFormat.format(time);
    }
}

Related Tutorials