public abstract static class Constants.SAFS_LogConstants
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
FORMAT_DATE
"MM-dd-yyyy"
|
static java.lang.String |
FORMAT_DATE_TIME
"MM-dd-yyyy HH:mm:ss"
|
static java.lang.String |
FORMAT_MILITARY_TIME
"HH:mm:ss"
|
Constructor and Description |
---|
SAFS_LogConstants() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
dateTime(int dateOrTime)
Returns the string representation of the current date or time.
|
static java.util.Date |
getDate(java.lang.String dateTime)
Convert a String dateTime to a Java Date.
|
static java.lang.String |
getDateTime(java.lang.String date,
java.lang.String time) |
public static final java.lang.String FORMAT_DATE
public static final java.lang.String FORMAT_MILITARY_TIME
public static final java.lang.String FORMAT_DATE_TIME
public static java.lang.String dateTime(int dateOrTime)
dateOrTime
- 0 to return date; 1 to return timeFORMAT_DATE
or time in format FORMAT_MILITARY_TIME
.public static java.util.Date getDate(java.lang.String dateTime)
dateTime
- String, in format FORMAT_DATE_TIME
public static java.lang.String getDateTime(java.lang.String date, java.lang.String time)
date
- String, in format FORMAT_DATE
time
- String, in format FORMAT_MILITARY_TIME
FORMAT_DATE_TIME_SEPARATOR
Copyright © SAS Institute. All Rights Reserved.