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.util.Date;

public class Main {
    /**
     * @return Return current day timestamp with YY, MM, dd info ONLY
     */
    public static Long getCurrentDateLong() {
        Date date = new Date();
        long ss = date.getTime();
        return ss;
    }
}