ApproximateDateTime ApproximateDateTime ApproximateDateTime Class

Definition

An approximation of a date and time.

public class ApproximateDateTime : Microsoft.Health.ItemTypes.HealthRecordItemData, IComparable, IComparable<DateTime>, IComparable<Microsoft.Health.ItemTypes.ApproximateDateTime>
type ApproximateDateTime = class
    inherit HealthRecordItemData
    interface IComparable
    interface IComparable<ApproximateDateTime>
    interface IComparable<DateTime>
Public Class ApproximateDateTime
Inherits HealthRecordItemData
Implements IComparable, IComparable(Of ApproximateDateTime), IComparable(Of DateTime)
Inheritance
ApproximateDateTimeApproximateDateTimeApproximateDateTime
Implements

Remarks

To use this class, you must specify either an approximate date or a 
descriptive date such as "as a baby."

Constructors

ApproximateDateTime() ApproximateDateTime() ApproximateDateTime()

Creates a new instance of the ApproximateDateTime class with default values.

ApproximateDateTime(ApproximateDate) ApproximateDateTime(ApproximateDate) ApproximateDateTime(ApproximateDate)

Creates a new instance of the ApproximateDateTime class with the specified date.

ApproximateDateTime(DateTime) ApproximateDateTime(DateTime) ApproximateDateTime(DateTime)

Creates a new instance of the ApproximateDateTime class from a DateTime instance.

ApproximateDateTime(String) ApproximateDateTime(String) ApproximateDateTime(String)

Creates a new instance of the ApproximateDateTime class with the specified description.

ApproximateDateTime(ApproximateDate, ApproximateTime) ApproximateDateTime(ApproximateDate, ApproximateTime) ApproximateDateTime(ApproximateDate, ApproximateTime)

Creates a new instance of the ApproximateDateTime class with the specified date and time.

ApproximateDateTime(ApproximateDate, ApproximateTime, CodableValue) ApproximateDateTime(ApproximateDate, ApproximateTime, CodableValue) ApproximateDateTime(ApproximateDate, ApproximateTime, CodableValue)

Creates a new instance of the ApproximateDateTime class with the specified date, time, and time zone.

Properties

ApproximateDate ApproximateDate ApproximateDate

Gets or sets the approximate date.

ApproximateTime ApproximateTime ApproximateTime

Gets or sets the approximate time.

Description Description Description

Gets or sets the descriptive form of the approximate date.

TimeZone TimeZone TimeZone

Gets or sets the time zone.

Methods

CompareTo(DateTime) CompareTo(DateTime) CompareTo(DateTime)

Compares the specified object to this ApproximateDateTime object.

CompareTo(Object) CompareTo(Object) CompareTo(Object)

Compares the specified object to this ApproximateDateTime object.

CompareTo(ApproximateDateTime) CompareTo(ApproximateDateTime) CompareTo(ApproximateDateTime)

Compares the specified object to this ApproximateDateTime object.

Equals(Object) Equals(Object) Equals(Object)

Gets a value indicating whether the specified object is equal to this object.

GetHashCode() GetHashCode() GetHashCode()

See the base class documentation.

ParseXml(XPathNavigator) ParseXml(XPathNavigator) ParseXml(XPathNavigator)

Populates the data for the approximate date and time from the XML.

ToString() ToString() ToString()

Gets a string representation of the approximate date/time.

WriteXml(String, XmlWriter) WriteXml(String, XmlWriter) WriteXml(String, XmlWriter)

Writes the approximate date and time to the specified XML writer.

Operators

Equality(ApproximateDateTime, Object) Equality(ApproximateDateTime, Object) Equality(ApproximateDateTime, Object)

Gets a value indicating whether the specified object is equal to the specified date.

GreaterThan(ApproximateDateTime, Object) GreaterThan(ApproximateDateTime, Object) GreaterThan(ApproximateDateTime, Object)

Gets a value indicating whether the specified date is greater than the specified object.

Inequality(ApproximateDateTime, Object) Inequality(ApproximateDateTime, Object) Inequality(ApproximateDateTime, Object)

Gets a value indicating whether the specified object is not equal to the specified date.

LessThan(ApproximateDateTime, Object) LessThan(ApproximateDateTime, Object) LessThan(ApproximateDateTime, Object)

Gets a value indicating whether the specified date is less than the specified object.

Applies to