Taal

LocalDateTime.PlusHours(Int64) Method

Definition

Returns a copy of this LocalDateTime with the specified number of hours added.

[Android.Runtime.Register("plusHours", "(J)Ljava/time/LocalDateTime;", "", ApiSince=26)]
public Java.Time.LocalDateTime? PlusHours(long hours);
[<Android.Runtime.Register("plusHours", "(J)Ljava/time/LocalDateTime;", "", ApiSince=26)>]
member this.PlusHours : int64 -> Java.Time.LocalDateTime

Parameters

hours
Int64

the hours to add, may be negative

Returns

a LocalDateTime based on this date-time with the hours added, not null

Attributes

Remarks

Returns a copy of this LocalDateTime with the specified number of hours added. This instance is immutable and unaffected by this method call.

Java reference for java.time.LocalDateTime.plusHours.

Applies to