public class DateTimeDt extends BaseDateTimeDt
| Modifier and Type | Field and Description |
|---|---|
static TemporalPrecisionEnum |
DEFAULT_PRECISION
The default precision for this type
|
| Constructor and Description |
|---|
DateTimeDt()
Constructor
|
DateTimeDt(Date theDate)
Create a new DateTimeDt with seconds precision and the local time zone
|
DateTimeDt(Date theDate,
TemporalPrecisionEnum thePrecision)
Constructor which accepts a date value and a precision value.
|
DateTimeDt(Date theDate,
TemporalPrecisionEnum thePrecision,
TimeZone theTimezone)
Constructor which accepts a date value, precision value, and time zone.
|
DateTimeDt(String theValue)
Create a new instance using a string date/time
|
| Modifier and Type | Method and Description |
|---|---|
protected TemporalPrecisionEnum |
getDefaultPrecisionForDatatype()
Returns the default precision for this datatype
|
static DateTimeDt |
withCurrentTime()
Returns a new instance of DateTimeDt with the current system time and SECOND precision and the system local time
zone
|
encode, getPrecision, getTimeZone, isTimeZoneZulu, isToday, parse, setPrecision, setTimeZone, setTimeZoneZulu, setValue, setValue, setValueAsString, toHumanDisplay, toHumanDisplayLocalTimezoneequals, getValue, getValueAsString, hashCode, isEmpty, readExternal, toString, updateStringValue, writeExternalgetElementSpecificId, getId, setElementSpecificId, setId, setIdaddUndeclaredExtension, addUndeclaredExtension, addUndeclaredExtension, getAllUndeclaredExtensions, getUndeclaredExtensions, getUndeclaredExtensionsByUrl, getUndeclaredModifierExtensions, isBaseEmptypublic static final TemporalPrecisionEnum DEFAULT_PRECISION
public DateTimeDt()
public DateTimeDt(Date theDate)
public DateTimeDt(Date theDate, TemporalPrecisionEnum thePrecision)
DataFormatException - If the specified precision is not allowed for this typepublic DateTimeDt(String theValue)
DataFormatException - If the specified precision is not allowed for this typepublic DateTimeDt(Date theDate, TemporalPrecisionEnum thePrecision, TimeZone theTimezone)
public static DateTimeDt withCurrentTime()
protected TemporalPrecisionEnum getDefaultPrecisionForDatatype()
getDefaultPrecisionForDatatype in class BaseDateTimeDtDEFAULT_PRECISIONCopyright © 2014–2016 University Health Network. All rights reserved.