Share via


Duration.Seconds Property

Definition

Obtains the value of the SECONDS field as an integer value, or 0 if not present.

public virtual int Seconds { [Android.Runtime.Register("getSeconds", "()I", "GetGetSecondsHandler")] get; }
[<get: Android.Runtime.Register("getSeconds", "()I", "GetGetSecondsHandler")>]
member this.Seconds : int

Property Value

seconds in the integer value. The fraction of seconds will be discarded (for example, if the actual value is 2.5, this method returns 2)

Attributes

Remarks

Obtains the value of the SECONDS field as an integer value, or 0 if not present.

This method works just like #getYears() except that this method works on the SECONDS field.

Java documentation for javax.xml.datatype.Duration.getSeconds().

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