Constructor TimeOnly
TimeOnly(Int32, Int32, Int32)
Initializes a new instance of the TimeOnly struct with the specified hour, minute, and seconds.
Declaration
public TimeOnly(int hour, int minute, int second)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | hour | The hours (0 through 23). |
| System.Int32 | minute | The minutes (0 through 59). |
| System.Int32 | second | The seconds (0 through 59). |
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentOutOfRangeException |
Applies to
Platforms and versions
| Target | Versions |
|---|---|
| .NET Framework | 200.4 - 200.8 |
| UWP | 200.4 - 200.8 |