LocalDateTime.MinusHours(Int64) Method

Definition

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

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

Parameters

hours
Int64

the hours to subtract, may be negative

Returns

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

Attributes

Remarks

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

Java reference for java.time.LocalDateTime.minusHours.

Applies to