ZonedDateTime.PlusSeconds(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 ZonedDateTime with the specified number of seconds added.
[Android.Runtime.Register("plusSeconds", "(J)Ljava/time/ZonedDateTime;", "", ApiSince=26)]
public Java.Time.ZonedDateTime? PlusSeconds(long seconds);
[<Android.Runtime.Register("plusSeconds", "(J)Ljava/time/ZonedDateTime;", "", ApiSince=26)>]
member this.PlusSeconds : int64 -> Java.Time.ZonedDateTime
Parameters
- seconds
- Int64
the seconds to add, may be negative
Returns
a ZonedDateTime based on this date-time with the seconds added, not null
- Attributes
Remarks
Returns a copy of this ZonedDateTime with the specified number of seconds added. This operates on the instant time-line, such that adding one second will always be a duration of one second later. This may cause the local date-time to change by an amount other than one second. 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.plusSeconds.