LocalDateTime.WithNano(Int32) 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 LocalDateTime with the nano-of-second altered.
[Android.Runtime.Register("withNano", "(I)Ljava/time/LocalDateTime;", "", ApiSince=26)]
public Java.Time.LocalDateTime? WithNano(int nanoOfSecond);
[<Android.Runtime.Register("withNano", "(I)Ljava/time/LocalDateTime;", "", ApiSince=26)>]
member this.WithNano : int -> Java.Time.LocalDateTime
Parameters
- nanoOfSecond
- Int32
the nano-of-second to set in the result, from 0 to 999,999,999
Returns
a LocalDateTime based on this date-time with the requested nanosecond, not null
- Attributes
Remarks
Returns a copy of this LocalDateTime with the nano-of-second altered. This instance is immutable and unaffected by this method call.
Java reference for java.time.LocalDateTime.withNano.