public final class CurrentDateHelper
extends java.lang.Object
Constructor and Description |
---|
CurrentDateHelper() |
Modifier and Type | Method and Description |
---|---|
static java.util.Date |
getCurrentDate()
Gets the current date.
|
static long |
getCurrentDateLong()
Gets the current date in long number format.
|
static int |
getCurrentDay()
Gets the current day in the month (1...31).
|
static int |
getCurrentHour()
Gets the current hour in 24 hours format.
|
static int |
getCurrentMinutes()
Gets the current minutes in hour.
|
static int |
getCurrentMonth()
Gets the current month, JANUARY = 1,......,DECEMBER = 12.
|
static int |
getCurrentSeconds()
Gets the current seconds in hour.
|
static int |
getCurrentYear()
Gets the current year, e.g.
|
public static java.util.Date getCurrentDate()
java.util.Date
object.public static long getCurrentDateLong()
public static int getCurrentYear()
public static int getCurrentMonth()
public static int getCurrentDay()
public static int getCurrentHour()
public static int getCurrentMinutes()
public static int getCurrentSeconds()