public final class DateTimeX extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_DATE_TIME_FORMAT
Default date time format used while converting date / time
to string.
|
| Constructor and Description |
|---|
DateTimeX() |
| Modifier and Type | Method and Description |
|---|---|
static long |
currentTimeMillis()
Current date/time in milliseconds
|
static Date |
getCurrDateTime()
Gets current date and time;
|
static String |
getCurrDateTimeStr()
Gets string representation of current date time applying
default date and time format.
|
static String |
getCurrDateTimeStr(String dateFormat)
Gets string representation of current date time.
|
public static String DEFAULT_DATE_TIME_FORMAT
public static final Date getCurrDateTime()
public static final String getCurrDateTimeStr(String dateFormat)
dateFormat - Format to applied while conversion.public static final String getCurrDateTimeStr()
public static final long currentTimeMillis()
Copyright © 2017. All rights reserved.