Udostępnij za pośrednictwem


IChronoLocalDateTime.ToLocalTime Method

Definition

Gets the local time part of this date-time.

[Android.Runtime.Register("toLocalTime", "()Ljava/time/LocalTime;", "GetToLocalTimeHandler:Java.Time.Chrono.IChronoLocalDateTimeInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=26)]
public Java.Time.LocalTime? ToLocalTime ();
[<Android.Runtime.Register("toLocalTime", "()Ljava/time/LocalTime;", "GetToLocalTimeHandler:Java.Time.Chrono.IChronoLocalDateTimeInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=26)>]
abstract member ToLocalTime : unit -> Java.Time.LocalTime

Returns

the time part of this date-time, not null

Attributes

Remarks

Gets the local time part of this date-time.

This returns a local time with the same hour, minute, second and nanosecond as this date-time.

Java documentation for java.time.chrono.ChronoLocalDateTime.toLocalTime().

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.

Applies to