ZonedDateTime.ToOffsetDateTime 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.
Converts this date-time to an OffsetDateTime.
[Android.Runtime.Register("toOffsetDateTime", "()Ljava/time/OffsetDateTime;", "", ApiSince=26)]
public Java.Time.OffsetDateTime? ToOffsetDateTime();
[<Android.Runtime.Register("toOffsetDateTime", "()Ljava/time/OffsetDateTime;", "", ApiSince=26)>]
member this.ToOffsetDateTime : unit -> Java.Time.OffsetDateTime
Returns
an offset date-time representing the same local date-time and offset, not null
- Attributes
Remarks
Converts this date-time to an OffsetDateTime. This creates an offset date-time using the local date-time and offset. The zone ID is ignored.
Java reference for java.time.ZonedDateTime.toOffsetDateTime.