Share via


TimeOfDay Struct

Definition

TimeOfDay type for Edm.TimeOfDay

public struct TimeOfDay : IComparable, IComparable<Microsoft.OData.Edm.TimeOfDay>, IEquatable<Microsoft.OData.Edm.TimeOfDay>
type TimeOfDay = struct
Public Structure TimeOfDay
Implements IComparable, IComparable(Of TimeOfDay), IEquatable(Of TimeOfDay)
Inheritance
TimeOfDay
Implements

Constructors

TimeOfDay(Int32, Int32, Int32, Int32)

Constructor of TimeOfDay

TimeOfDay(Int64)

Constructor of TimeOfDay

Fields

MaxTickValue

Max value of ticks

MaxValue

Max value of TimeOfDay

MinTickValue

Min value of ticks

MinValue

Min value of TimeOfDay

TicksPerHour

Represents the number of ticks in 1 hour. This field is constant.

TicksPerMinute

Represents the number of ticks in 1 minute. This field is constant.

TicksPerSecond

Represents the number of ticks in 1 second.

Properties

Hours

Gets the hour component of the TimeOfDay represented by this instance.

Milliseconds

Gets the millisecond component of the TimeOfDay represented by this instance.

Minutes

Gets the minute component of the TimeOfDay represented by this instance.

Now

Gets a TimeOfDay object that is set to current time on this computer, expressed as the local time.

Seconds

Gets the second component of the TimeOfDay represented by this instance.

Ticks

Gets the number of ticks that represent the value of the current TimeOfDay structure

Methods

CompareTo(Object)

Compares the value of this instance to a object value and returns an integer that indicates whether this instance is earlier than, the same as, or later than the object if it is a TimeOfDay.

CompareTo(TimeOfDay)

Compares the value of this instance to a specified TimeOfDay value and returns an integer that indicates whether this instance is earlier than, the same as, or later than the specified TimeOfDay value.

Equals(Object)

Compares the value of this instance to a specified object value and returns an bool that indicates whether the specified object is TimeOfDay and this instance is same as the specified TimeOfDay value.

Equals(TimeOfDay)

Compares the value of this instance to a specified TimeOfDay value and returns an bool that indicates whether this instance is same as the specified TimeOfDay value.

GetHashCode()

Returns the hash code for this instance.

Parse(String, IFormatProvider)

Converts a specified string representation of a date to TimeOfDay.

Parse(String)

Converts a specified string representation of a date to TimeOfDay with CurrentCulture format.

ToString()

Convert TimeOfDay to String. The precision will 100ns (7 digits).

TryParse(String, IFormatProvider, TimeOfDay)

Try converts a specified string representation of a timeofday to TimeOfDay.

TryParse(String, TimeOfDay)

Try converts a specified string representation of a timeofday to TimeOfDay with CurrentCulture.

Operators

Equality(TimeOfDay, TimeOfDay)

Indicates whether two TimeOfDay instances are equal.

GreaterThan(TimeOfDay, TimeOfDay)

Indicates whether a specified TimeOfDay is greater than another specified TimeOfDay.

GreaterThanOrEqual(TimeOfDay, TimeOfDay)

Indicates whether a specified TimeOfDay is greater equal to another specified TimeOfDay.

Implicit(TimeOfDay to TimeSpan)

Convert TimeOfDay to .Net Clr TimeSpan

Implicit(TimeSpan to TimeOfDay)

Convert .Net Clr TimeSpan to TimeOfDay

Inequality(TimeOfDay, TimeOfDay)

Indicates whether two TimeOfDay instances are not equal.

LessThan(TimeOfDay, TimeOfDay)

Indicates whether a specified TimeOfDay is less than another specified TimeOfDay.

LessThanOrEqual(TimeOfDay, TimeOfDay)

Indicates whether a specified TimeOfDay is less equal to another specified TimeOfDay.

Applies to