ApproximateTime ApproximateTime ApproximateTime Class

Definition

An approximation of a time.

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

Remarks

An approximation of a time must have an hour and minute and can

also optionally have seconds specified.

Constructors

ApproximateTime() ApproximateTime() ApproximateTime()

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

ApproximateTime(Int32, Int32) ApproximateTime(Int32, Int32) ApproximateTime(Int32, Int32)

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

ApproximateTime(Int32, Int32, Int32) ApproximateTime(Int32, Int32, Int32) ApproximateTime(Int32, Int32, Int32)

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

ApproximateTime(Int32, Int32, Int32, Int32) ApproximateTime(Int32, Int32, Int32, Int32) ApproximateTime(Int32, Int32, Int32, Int32)

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

Properties

HasValue HasValue HasValue

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

Hour Hour Hour

Gets or sets the hour of the time approximation.

Millisecond Millisecond Millisecond

Gets or sets the milliseconds of the time approximation.

Minute Minute Minute

Gets or sets the minute of the time approximation.

Now Now Now

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

Second Second Second

Gets or sets the seconds of the time approximation.

Methods

CompareTo(ApproximateTime) CompareTo(ApproximateTime) CompareTo(ApproximateTime)

Compares the specified object to this ApproximateDate object.

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

Compares the specified object to this DateTime object.

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

Compares the specified object to this ApproximateTime 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 time from the XML.

ToString() ToString() ToString()

Gets a string representation of the time.

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

Writes the approximate time to the specified XML writer.

Operators

Equality(ApproximateTime, Object) Equality(ApproximateTime, Object) Equality(ApproximateTime, Object)

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

GreaterThan(ApproximateTime, Object) GreaterThan(ApproximateTime, Object) GreaterThan(ApproximateTime, Object)

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

Inequality(ApproximateTime, Object) Inequality(ApproximateTime, Object) Inequality(ApproximateTime, Object)

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

LessThan(ApproximateTime, Object) LessThan(ApproximateTime, Object) LessThan(ApproximateTime, Object)

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

Applies to