Dil

IChronoZonedDateTime.ITemporalAccessor.GetLong(ITemporalField) Method

Definition

Gets the value of the specified field as a long.

[Android.Runtime.Register("getLong", "(Ljava/time/temporal/TemporalField;)J", "GetGetLong_Ljava_time_temporal_TemporalField_Handler:Java.Time.Chrono.IChronoZonedDateTime, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=26)]
override sealed long ITemporalAccessor.GetLong(Java.Time.Temporal.ITemporalField? field);
[<Android.Runtime.Register("getLong", "(Ljava/time/temporal/TemporalField;)J", "GetGetLong_Ljava_time_temporal_TemporalField_Handler:Java.Time.Chrono.IChronoZonedDateTime, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=26)>]
abstract member Java.Time.Temporal.ITemporalAccessor.GetLong : Java.Time.Temporal.ITemporalField -> int64
override this.Java.Time.Temporal.ITemporalAccessor.GetLong : Java.Time.Temporal.ITemporalField -> int64

Parameters

field
ITemporalField

the field to get, not null

Returns

the value for the field

Implements

Attributes

Remarks

Gets the value of the specified field as a long. This queries the date-time for the value of the specified field. The returned value may be outside the valid range of values for the field. If the date-time cannot return the value, because the field is unsupported or for some other reason, an exception will be thrown.

Java reference for java.time.chrono.ChronoZonedDateTime.getLong.

Applies to