Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

import java.text.SimpleDateFormat;

import java.util.Date;
import android.annotation.SuppressLint;

public class Main {
    /**
     * 
     * @param cc_time
     * @return
     */
    @SuppressLint("SimpleDateFormat")
    public static String getStrTime(String cc_time) {

        String re_time = "";
        SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
        long lcc_time = Long.valueOf(cc_time);
        re_time = sdf.format(new Date(lcc_time));
        return re_time;

    }
}