public class PcDateUtils
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private static org.slf4j.Logger |
logger
The logger.
|
Constructor and Description |
---|
PcDateUtils() |
Modifier and Type | Method and Description |
---|---|
static java.util.Date |
getDateFromConciseStr(java.lang.String str)
20130512 Converts the sdsm string generated above to Date format.
|
static java.lang.String |
getDateTimeStr(java.util.Date d)
Gets the date time str.
|
static java.lang.String |
getDateTimeStrConcise(java.util.Date d)
Gets the date time str concise.
|
static java.lang.String |
getDateTimeStrConciseNoZone(java.util.Date d)
20141027: same as getDateTimeStrConcise but no timezone.
|
static java.lang.String |
getDateTimeStrStandard(java.util.Date d)
Gets the date time str standard.
|
static java.lang.String |
getNowDateTimeStr()
Gets the now date time str.
|
static java.lang.String |
getNowDateTimeStrConcise()
Gets the now date time str concise.
|
static java.lang.String |
getNowDateTimeStrConciseNoZone()
Gets the now date time str concise no zone.
|
static java.lang.String |
getNowDateTimeStrStandard()
Gets the now date time str standard.
|
public static java.lang.String getDateTimeStr(java.util.Date d)
d
- the dpublic static java.lang.String getDateTimeStrStandard(java.util.Date d)
d
- the dpublic static java.lang.String getDateTimeStrConcise(java.util.Date d)
d
- the dpublic static java.lang.String getDateTimeStrConciseNoZone(java.util.Date d)
d
- the dpublic static java.util.Date getDateFromConciseStr(java.lang.String str)
str
- the strpublic static java.lang.String getNowDateTimeStr()
public static java.lang.String getNowDateTimeStrStandard()
public static java.lang.String getNowDateTimeStrConcise()
public static java.lang.String getNowDateTimeStrConciseNoZone()