Android Second to Time getSeconds2()

Here you can find the source of getSeconds2()

Description

get Seconds

Declaration

public static String getSeconds2() 

Method Source Code

//package com.java2s;
import java.sql.Timestamp;

public class Main {

    public static String getSeconds2() {

        java.util.Date date1 = new java.util.Date();
        Timestamp stamp2 = new Timestamp(date1.getTime());
        return stamp2.toString();
    }/*from  w w  w  . ja  v a 2s . co  m*/
}

Related

  1. milliSecondsToTimer(long milliseconds)
  2. getTime(int minutes, int seconds)
  3. getElapsedSeconds(long start, long end)
  4. getSpeedString(float bytesPerMillisecond)
  5. getSeconds1()