public class CDSDate extends CDSBase
COSString.
The string follows the format defined in [PDF], chapter 3.8.2.
COSBasedObject.MetaClass| Modifier and Type | Field and Description |
|---|---|
static String |
DATE_FORMAT |
static Pattern |
DatePattern |
META| Constructor and Description |
|---|
CDSDate()
Create a new date object with the current system date set
|
| Modifier and Type | Method and Description |
|---|---|
static CDSDate |
createFromCOS(COSString string)
|
static String |
format(CDSDate cdsDate)
Format a
CDSDate using the default format. |
static String |
format(Format format,
CDSDate cdsDate)
Format a
CDSDate using format. |
String |
stringValue()
The
String representation of this. |
Date |
toDate()
The
Date represented by this. |
static Date |
toDate(String string)
Create a
Date using the default format. |
static Date |
toDateWithZone(String string)
Create a
Date using the default format using the timezone. |
String |
toFormattedString()
A formatted
String representation of this. |
static String |
toString(Date date) |
static String |
toStringWithZone(Date date) |
static String |
toStringWithZone(Date date,
TimeZone timeZone) |
changed, cosGetArray, cosGetDict, cosGetDoc, cosGetField, cosGetObject, cosGetStream, cosHasField, cosRemoveField, cosSetField, getAttribute, getFieldBoolean, getFieldDate, getFieldFixed, getFieldFixedArray, getFieldInt, getFieldMLString, getFieldString, invalidateCaches, removeAttribute, setAttribute, setFieldBoolean, setFieldFixed, setFieldInt, setFieldMLString, setFieldName, setFieldObject, setFieldString, toStringpublic static final String DATE_FORMAT
public static final Pattern DatePattern
public CDSDate()
public static String format(Format format, CDSDate cdsDate)
CDSDate using format.format - The format to be used for formattingcdsDate - The date to be formattedString representation of cdsDatepublic static Date toDate(String string) throws ParseException
Date using the default format.string - The date string.DateParseExceptionpublic static Date toDateWithZone(String string) throws ParseException
Date using the default format using the timezone.string - The date string.DateParseExceptionpublic String stringValue()
String representation of this.String representation of this.public Date toDate() throws ParseException
Date represented by this.Date represented by this.ParseExceptionCopyright © 2013 intarsys consulting GmbH. All Rights Reserved.