Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;
//License from project: Apache License 

import java.text.SimpleDateFormat;

public class Main {

    public static String long2date(String format, long mill) {
        SimpleDateFormat sdf = new SimpleDateFormat(format);
        return sdf.format(mill);
    }

    public static String long2date(long mill) {
        return long2date("HH:mm:ss", mill);
    }
}