Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//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();
    }
}