OffsetTime.PlusNanos(Int64) 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.
Returns a copy of this OffsetTime with the specified number of nanoseconds added.
[Android.Runtime.Register("plusNanos", "(J)Ljava/time/OffsetTime;", "", ApiSince=26)]
public Java.Time.OffsetTime? PlusNanos(long nanos);
[<Android.Runtime.Register("plusNanos", "(J)Ljava/time/OffsetTime;", "", ApiSince=26)>]
member this.PlusNanos : int64 -> Java.Time.OffsetTime
Parameters
- nanos
- Int64
the nanos to add, may be negative
Returns
an OffsetTime based on this time with the nanoseconds added, not null
- Attributes
Remarks
Returns a copy of this OffsetTime with the specified number of nanoseconds added. This adds the specified number of nanoseconds to this time, returning a new time. The calculation wraps around midnight. This instance is immutable and unaffected by this method call.
Java reference for java.time.OffsetTime.plusNanos.