Language

LocalDateTime.MinusNanos(Int64) Method

Definition

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

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

Parameters

nanos
Int64

the nanos to subtract, may be negative

Returns

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

Attributes

Remarks

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

Java reference for java.time.LocalDateTime.minusNanos.

Applies to