Approximate​Time Class

Definition

An approximation of a time.

public class ApproximateTime : Microsoft.Health.ItemTypes.HealthRecordItemData, IComparable, IComparable<Microsoft.Health.ItemTypes.ApproximateTime>
Inheritance
Implements

Remarks

An approximation of a time must have an hour and minute and can also optionally have seconds specified.

Constructors

Approximate​Time()

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

Approximate​Time(​Int32, ​Int32)

Creates a new instance of the ApproximateTime class with the specified hour and minute.

Approximate​Time(​Int32, ​Int32, ​Int32)

Creates a new instance of the ApproximateTime class with the specified hour, minute, and second.

Approximate​Time(​Int32, ​Int32, ​Int32, ​Int32)

Creates a new instance of the ApproximateTime class with the specified hour, minute, second, and millisecond.

Properties

Has​Value

Gets a boolean indicating whether this ApproximateTime has a value in it.

Hour

Gets or sets the hour of the time approximation.

Millisecond

Gets or sets the milliseconds of the time approximation.

Minute

Gets or sets the minute of the time approximation.

Now

Gets the current time including the hour, minute, and second.

Second

Gets or sets the seconds of the time approximation.

Methods

Compare​To(​Approximate​Time)

Compares the specified object to this ApproximateDate object.

Compare​To(​Object)

Compares the specified object to this ApproximateTime object.

Equals(​Object)

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

Get​Hash​Code()

See the base class documentation.

Parse​Xml(​XPath​Navigator)

Populates the data for the approximate time from the XML.

To​String()

Gets a string representation of the time.

Write​Xml(​String, ​Xml​Writer)

Writes the approximate time to the specified XML writer.

Operators

Equality(​Approximate​Time, ​Object)

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

Greater​Than(​Approximate​Time, ​Object)

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

Inequality(​Approximate​Time, ​Object)

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

Less​Than(​Approximate​Time, ​Object)

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