TimeOnly.AddHours Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
AddHours(Double, Int32) |
Returns a new TimeOnly that adds the specified number of hours to the value of this instance. If the result wraps past the end of the day, this method returns the number of excess days as an out parameter. |
AddHours(Double) |
Returns a new TimeOnly that adds the specified number of hours to the value of this instance. |
AddHours(Double, Int32)
- Source:
- TimeOnly.cs
- Source:
- TimeOnly.cs
- Source:
- TimeOnly.cs
Returns a new TimeOnly that adds the specified number of hours to the value of this instance. If the result wraps past the end of the day, this method returns the number of excess days as an out parameter.
public:
TimeOnly AddHours(double value, [Runtime::InteropServices::Out] int % wrappedDays);
public TimeOnly AddHours (double value, out int wrappedDays);
member this.AddHours : double * int -> TimeOnly
Public Function AddHours (value As Double, ByRef wrappedDays As Integer) As TimeOnly
Parameters
- value
- Double
A number of whole and fractional hours. The value parameter can be negative or positive.
- wrappedDays
- Int32
When this method returns, contains the number of excess days, if any, that resulted from wrapping during this addition operation.
Returns
An object whose value is the sum of the time represented by this instance and the number of hours represented by value.
Applies to
AddHours(Double)
- Source:
- TimeOnly.cs
- Source:
- TimeOnly.cs
- Source:
- TimeOnly.cs
Returns a new TimeOnly that adds the specified number of hours to the value of this instance.
public:
TimeOnly AddHours(double value);
public TimeOnly AddHours (double value);
member this.AddHours : double -> TimeOnly
Public Function AddHours (value As Double) As TimeOnly
Parameters
- value
- Double
A number of whole and fractional hours. The value parameter can be negative or positive.
Returns
An object whose value is the sum of the time represented by this instance and the number of hours represented by value.
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
În curând: Pe parcursul anului 2024, vom elimina treptat Probleme legate de GitHub ca mecanism de feedback pentru conținut și îl vom înlocui cu un nou sistem de feedback. Pentru mai multe informații, consultați:Trimiteți și vizualizați feedback pentru