GregorianCalendar.ToZonedDateTime 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 object to a ZonedDateTime
that represents
the same point on the time-line as this GregorianCalendar
.
[Android.Runtime.Register("toZonedDateTime", "()Ljava/time/ZonedDateTime;", "GetToZonedDateTimeHandler", ApiSince=26)]
public virtual Java.Time.ZonedDateTime? ToZonedDateTime ();
[<Android.Runtime.Register("toZonedDateTime", "()Ljava/time/ZonedDateTime;", "GetToZonedDateTimeHandler", ApiSince=26)>]
abstract member ToZonedDateTime : unit -> Java.Time.ZonedDateTime
override this.ToZonedDateTime : unit -> Java.Time.ZonedDateTime
Returns
a zoned date-time representing the same point on the time-line as this gregorian calendar
- Attributes
Remarks
Converts this object to a ZonedDateTime
that represents the same point on the time-line as this GregorianCalendar
.
Since this object supports a Julian-Gregorian cutover date and ZonedDateTime
does not, it is possible that the resulting year, month and day will have different values. The result will represent the correct date in the ISO calendar system, which will also be the same value for Modified Julian Days.
Added in 1.8.
Java documentation for java.util.GregorianCalendar.toZonedDateTime()
.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.