public class DateTimeType extends BaseDateTimeType
TemporalPrecisionEnum.YEAR
TemporalPrecisionEnum.MONTH
TemporalPrecisionEnum.DAY
TemporalPrecisionEnum.SECOND
TemporalPrecisionEnum.MILLI
| Modifier and Type | Field and Description |
|---|---|
static ca.uhn.fhir.model.api.TemporalPrecisionEnum |
DEFAULT_PRECISION
The default precision for this type
|
| Constructor and Description |
|---|
DateTimeType()
Constructor
|
DateTimeType(Calendar theCalendar)
Constructor
|
DateTimeType(Date theDate)
Create a new DateTimeDt with seconds precision and the local time zone
|
DateTimeType(Date theDate,
ca.uhn.fhir.model.api.TemporalPrecisionEnum thePrecision)
Constructor which accepts a date value and a precision value.
|
DateTimeType(Date theDate,
ca.uhn.fhir.model.api.TemporalPrecisionEnum thePrecision,
TimeZone theTimezone)
Constructor which accepts a date value, precision value, and time zone.
|
DateTimeType(String theValue)
Create a new instance using a string date/time
|
| Modifier and Type | Method and Description |
|---|---|
DateTimeType |
copy() |
String |
fhirType() |
protected ca.uhn.fhir.model.api.TemporalPrecisionEnum |
getDefaultPrecisionForDatatype()
Returns the default precision for this datatype
|
int |
getTzHour() |
int |
getTzMin() |
boolean |
getTzSign() |
static DateTimeType |
now()
Returns a new instance of DateTimeType with the current system time and SECOND precision and the system local time
zone
|
static DateTimeType |
parseV3(String theV3String)
Creates a new instance by parsing an HL7 v3 format date time string
|
static DateTimeType |
today() |
add, after, before, encode, getDay, getHour, getMillis, getMinute, getMonth, getNanos, getPrecision, getSecond, getTimeZone, getValueAsCalendar, getYear, isTimeZoneZulu, isToday, parse, setDay, setHour, setMillis, setMinute, setMonth, setNanos, setPrecision, setSecond, setTimeZone, setTimeZoneZulu, setValue, setValue, setValueAsString, setValueAsV3String, setYear, toCalendar, toHumanDisplay, toHumanDisplayLocalTimezoneasStringValue, equalsDeep, equalsShallow, fromStringValue, getProperty, getTypesForProperty, getValue, getValueAsString, hashCode, hasValue, isEmpty, isPrimitive, primitiveValue, readExternal, setProperty, setProperty, toString, typedCopy, updateStringValue, writeExternaladdChild, addExtension, addExtension, addExtension, copyValues, getExtension, getExtensionByUrl, getExtensionFirstRep, getExtensionsByUrl, getExtensionString, getId, getIdBase, getIdElement, getNamedProperty, hasExtension, hasExtension, hasId, hasIdElement, isDisallowExtensions, listChildren, makeProperty, noExtensions, setDisallowExtensions, setExtension, setId, setIdBase, setIdElementcastToAddress, castToAnnotation, castToAttachment, castToBase64Binary, castToBoolean, castToCanonical, castToCode, castToCodeableConcept, castToCoding, castToContactDetail, castToContactPoint, castToContributor, castToDataRequirement, castToDate, castToDateTime, castToDecimal, castToDosage, castToDuration, castToElementDefinition, castToExtension, castToHumanName, castToId, castToIdentifier, castToInstant, castToInteger, castToMarkdown, castToMarketingStatus, castToMeta, castToMoney, castToNarrative, castToOid, castToParameterDefinition, castToPeriod, castToPositiveInt, castToProdCharacteristic, castToProductShelfLife, castToQuantity, castToRange, castToRatio, castToReference, castToRelatedArtifact, castToResource, castToSampledData, castToSignature, castToSimpleQuantity, castToString, castToSubstanceAmount, castToTime, castToTiming, castToTriggerDefinition, castToType, castToUnsignedInt, castToUri, castToUrl, castToUsageContext, castToXhtml, castToXhtmlString, children, clearUserData, compareDeep, compareDeep, compareDeep, compareValues, compareValues, equals, getChildByName, getFormatCommentsPost, getFormatCommentsPre, getNamedProperty, getUserData, getUserInt, getUserString, hasFormatComment, hasPrimitiveValue, hasType, hasUserData, isBooleanPrimitive, isMetadataBased, isResource, listChildrenByName, listChildrenByName, setUserData, setUserDataINNclone, equals, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final ca.uhn.fhir.model.api.TemporalPrecisionEnum DEFAULT_PRECISION
public DateTimeType()
public DateTimeType(Date theDate)
public DateTimeType(Date theDate, ca.uhn.fhir.model.api.TemporalPrecisionEnum thePrecision)
TemporalPrecisionEnum.YEAR
TemporalPrecisionEnum.MONTH
TemporalPrecisionEnum.DAY
TemporalPrecisionEnum.SECOND
TemporalPrecisionEnum.MILLI
DataFormatException - If the specified precision is not allowed for this typepublic DateTimeType(String theValue)
DataFormatException - If the specified precision is not allowed for this typepublic DateTimeType(Date theDate, ca.uhn.fhir.model.api.TemporalPrecisionEnum thePrecision, TimeZone theTimezone)
TemporalPrecisionEnum.YEAR
TemporalPrecisionEnum.MONTH
TemporalPrecisionEnum.DAY
TemporalPrecisionEnum.SECOND
TemporalPrecisionEnum.MILLI
public DateTimeType(Calendar theCalendar)
public DateTimeType copy()
copy in class PrimitiveType<Date>protected ca.uhn.fhir.model.api.TemporalPrecisionEnum getDefaultPrecisionForDatatype()
getDefaultPrecisionForDatatype in class BaseDateTimeTypeDEFAULT_PRECISIONpublic int getTzHour()
public int getTzMin()
public boolean getTzSign()
public static DateTimeType now()
public static DateTimeType parseV3(String theV3String)
public static DateTimeType today()
Copyright © 2014–2018 University Health Network. All rights reserved.