Struct TimeOnly
Represents a time of day within the range 00:00:00 to 23:59:59, with a resolution of 1 second.
Namespace: Esri.ArcGISRuntime
Assembly: Esri.ArcGISRuntime.dll
Syntax
public readonly struct TimeOnly : IComparable, IComparable<TimeOnly>, IEquatable<TimeOnly>
Remarks
This type is a compatibility shim for System.TimeOnly
for projects targeting .NET Framework and UWP.
Constructors
Name | Description |
---|---|
Time |
Initializes a new instance of the Time |
Properties
Name | Description |
---|---|
Hour | Gets the hour component of the time. |
Minute | Gets the minute component of the time. |
Second | Gets the second component of the time. |
Methods
Name | Description |
---|---|
Compare |
|
Compare |
|
Equals(Time |
|
Equals(Object) | |
From |
Converts System. |
From |
Converts System. |
Get |
|
Parse(String) | Creates a new Time |
To |
|
To |
Converts Time |
Operators
Name | Description |
---|---|
Equality(Time |
Checks if two TimeOnly instances are equal. |
Greater |
Checks if left TimeOnly instance is greater than the right one. |
Greater |
Checks if left TimeOnly instance is greater than or equal to the right one. |
Inequality(Time |
Checks if two TimeOnly instances are not equal. |
Less |
Checks if left TimeOnly instance is less than the right one. |
Less |
Checks if left TimeOnly instance is less than or equal to the right one. |
Applies to
Target | Versions |
---|---|
.NET Framework | 200.4 - 200.6 |
UWP | 200.4 - 200.6 |