Language

ZonedDateTime.PlusNanos(Int64) Method

Definition

Returns a copy of this ZonedDateTime with the specified number of nanoseconds added.

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

Parameters

nanos
Int64

the nanos to add, may be negative

Returns

a ZonedDateTime based on this date-time with the nanoseconds added, not null

Attributes

Remarks

Returns a copy of this ZonedDateTime with the specified number of nanoseconds added. This operates on the instant time-line, such that adding one nano will always be a duration of one nano later. This may cause the local date-time to change by an amount other than one nano. Note that this is a different approach to that used by days, months and years. This instance is immutable and unaffected by this method call.

Java reference for java.time.ZonedDateTime.plusNanos.

Applies to