Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;
import android.util.Log;
import java.text.SimpleDateFormat;

public class Main {
    public static String horaParaString(java.sql.Timestamp data) {

        try {
            SimpleDateFormat sdf = new SimpleDateFormat("HH:mm:ss");
            return sdf.format(data);
        } catch (Exception e) {
            Log.e("afaLog", "Houve um problema ao obter uma data (data para string)");
            return null;
        }
    }
}