Udostępnij za pośrednictwem


SystemClock.SetCurrentTimeMillis(Int64) Method

Definition

Sets the current wall time, in milliseconds.

[Android.Runtime.Register("setCurrentTimeMillis", "(J)Z", "")]
public static bool SetCurrentTimeMillis (long millis);
[<Android.Runtime.Register("setCurrentTimeMillis", "(J)Z", "")>]
static member SetCurrentTimeMillis : int64 -> bool

Parameters

millis
Int64

Returns

if the clock was successfully set to the specified time.

Attributes

Remarks

Sets the current wall time, in milliseconds. Requires the calling process to have appropriate permissions.

Java documentation for android.os.SystemClock.setCurrentTimeMillis(long).

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