次の方法で共有


Date.Seconds Property

Definition

Caution

deprecated

Returns the number of seconds past the minute represented by this date. -or- Sets the seconds of this Date to the specified value.

[System.Obsolete("deprecated")]
public virtual int Seconds { [Android.Runtime.Register("getSeconds", "()I", "GetGetSecondsHandler")] get; [Android.Runtime.Register("setSeconds", "(I)V", "GetSetSeconds_IHandler")] set; }
[<System.Obsolete("deprecated")>]
[<get: Android.Runtime.Register("getSeconds", "()I", "GetGetSecondsHandler")>]
[<set: Android.Runtime.Register("setSeconds", "(I)V", "GetSetSeconds_IHandler")>]
member this.Seconds : int with get, set

Property Value

the number of seconds past the minute represented by this date.

Attributes

Remarks

Property getter documentation:

Returns the number of seconds past the minute represented by this date. The value returned is between 0 and 61. The values 60 and 61 can only occur on those Java Virtual Machines that take leap seconds into account.

This member is deprecated. As of JDK version 1.1, replaced by Calendar.get(Calendar.SECOND).

Java documentation for java.util.Date.getSeconds().

Property setter documentation:

Sets the seconds of this Date to the specified value. This Date object is modified so that it represents a point in time within the specified second of the minute, with the year, month, date, hour, and minute the same as before, as interpreted in the local time zone.

This member is deprecated. As of JDK version 1.1, replaced by Calendar.set(Calendar.SECOND, int seconds).

Java documentation for java.util.Date.setSeconds(int).

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