Language

Calendar.Builder.SetInstant Method

Definition

Overloads

Name Description
SetInstant(Int64)

Sets the instant parameter to the given instant value that is a millisecond offset from the Epoch.

SetInstant(Date)

Sets the instant parameter to the instant value given by a Date.

SetInstant(Int64)

Sets the instant parameter to the given instant value that is a millisecond offset from the Epoch.

[Android.Runtime.Register("setInstant", "(J)Ljava/util/Calendar$Builder;", "GetSetInstant_JHandler", ApiSince=26)]
public virtual Java.Util.Calendar.Builder SetInstant(long instant);
[<Android.Runtime.Register("setInstant", "(J)Ljava/util/Calendar$Builder;", "GetSetInstant_JHandler", ApiSince=26)>]
abstract member SetInstant : int64 -> Java.Util.Calendar.Builder
override this.SetInstant : int64 -> Java.Util.Calendar.Builder

Parameters

instant
Int64

a millisecond offset from the Epoch

Returns

this Calendar.Builder

Attributes

Remarks

Sets the instant parameter to the given instant value that is a millisecond offset from the Epoch.

Java reference for java.util.Calendar.Builder.setInstant.

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

SetInstant(Date)

Sets the instant parameter to the instant value given by a Date.

[Android.Runtime.Register("setInstant", "(Ljava/util/Date;)Ljava/util/Calendar$Builder;", "GetSetInstant_Ljava_util_Date_Handler", ApiSince=26)]
public virtual Java.Util.Calendar.Builder SetInstant(Java.Util.Date instant);
[<Android.Runtime.Register("setInstant", "(Ljava/util/Date;)Ljava/util/Calendar$Builder;", "GetSetInstant_Ljava_util_Date_Handler", ApiSince=26)>]
abstract member SetInstant : Java.Util.Date -> Java.Util.Calendar.Builder
override this.SetInstant : Java.Util.Date -> Java.Util.Calendar.Builder

Parameters

instant
Date

a Date representing a millisecond offset from the Epoch

Returns

this Calendar.Builder

Attributes

Remarks

Sets the instant parameter to the instant value given by a Date. This method is equivalent to a call to setInstant(instant.getTime()).

Java reference for java.util.Calendar.Builder.setInstant.

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