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() |
String |
getAsV3() |
protected ca.uhn.fhir.model.api.TemporalPrecisionEnum |
getDefaultPrecisionForDatatype()
Returns the default precision for this datatype
|
int |
getTzHour() |
int |
getTzMin() |
boolean |
getTzSign() |
boolean |
isDateTime() |
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, dateTimeValue, encode, equalsUsingFhirPathRules, fpValue, getDay, getHour, getMillis, getMinute, getMonth, getNanos, getPrecision, getSecond, getTimeZone, getValueAsCalendar, getYear, hasTime, isTimeZoneZulu, isToday, parse, setDay, setHour, setMillis, setMinute, setMonth, setNanos, setPrecision, setSecond, setTimeZone, setTimeZoneZulu, setValue, setValue, setValueAsString, setValueAsV3String, setYear, toCalendar, toHumanDisplay, toHumanDisplayLocalTimezoneasStringValue, equalsDeep, equalsShallow, forceStringValue, fromStringValue, getProperty, getTypesForProperty, getValue, getValueAsString, hashCode, hasPrimitiveValue, hasValue, isEmpty, isPrimitive, makeProperty, 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, noExtensions, removeExtension, setDisallowExtensions, setExtension, setId, setIdBase, setIdElementcastToAddress, castToAnnotation, castToAttachment, castToBase64Binary, castToBoolean, castToCanonical, castToCode, castToCodeableConcept, castToCoding, castToContactDetail, castToContactPoint, castToContributor, castToDataRequirement, castToDate, castToDateTime, castToDecimal, castToDosage, castToDuration, castToElementDefinition, castToExpression, castToExtension, castToHumanName, castToId, castToIdentifier, castToInstant, castToInteger, castToMarkdown, castToMarketingStatus, castToMeta, castToMoney, castToNarrative, castToOid, castToParameterDefinition, castToPeriod, castToPopulation, 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, compareDeep, compareValues, compareValues, equals, getChildByName, getFormatCommentsPost, getFormatCommentsPre, getNamedProperty, getUserData, getUserInt, getUserString, hasFormatComment, hasType, hasUserData, isBooleanPrimitive, isMetadataBased, isResource, listChildrenByName, listChildrenByName, setUserData, setUserDataINNclone, equals, finalize, getClass, notify, notifyAll, wait, wait, waitgetFormatCommentsPost, getFormatCommentsPre, getUserData, hasFormatComment, setUserDatapublic 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 static DateTimeType now()
protected ca.uhn.fhir.model.api.TemporalPrecisionEnum getDefaultPrecisionForDatatype()
getDefaultPrecisionForDatatype in class BaseDateTimeTypeDEFAULT_PRECISIONpublic DateTimeType copy()
copy in class PrimitiveType<Date>public static DateTimeType parseV3(String theV3String)
public static DateTimeType today()
public boolean getTzSign()
public int getTzHour()
public int getTzMin()
public boolean isDateTime()
isDateTime in class BaseDateTimeTypeCopyright © 2014–2021 Health Level 7. All rights reserved.