Share via


Time Constructors

Definition

Overloads

Time()

Construct a Time object in the default timezone.

Time(Time)

A copy constructor.

Time(String)

Construct a Time object in the timezone named by the string argument "timezone".

Time(IntPtr, JniHandleOwnership)

A constructor used when creating managed representations of JNI objects; called by the runtime.

Time()

Construct a Time object in the default timezone.

[Android.Runtime.Register(".ctor", "()V", "")]
public Time ();
Attributes

Remarks

Construct a Time object in the default timezone. The time is initialized to Jan 1, 1970.

Java documentation for android.text.format.Time.Time().

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

Time(Time)

A copy constructor.

[Android.Runtime.Register(".ctor", "(Landroid/text/format/Time;)V", "")]
public Time (Android.Text.Format.Time? other);
[<Android.Runtime.Register(".ctor", "(Landroid/text/format/Time;)V", "")>]
new Android.Text.Format.Time : Android.Text.Format.Time -> Android.Text.Format.Time

Parameters

other
Time

other

Attributes

Remarks

A copy constructor. Construct a Time object by copying the given Time object. No normalization occurs.

Java documentation for android.text.format.Time.Time(android.text.format.Time).

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

Time(String)

Construct a Time object in the timezone named by the string argument "timezone".

[Android.Runtime.Register(".ctor", "(Ljava/lang/String;)V", "")]
public Time (string? timezoneId);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;)V", "")>]
new Android.Text.Format.Time : string -> Android.Text.Format.Time

Parameters

timezoneId
String

string containing the timezone to use.

Attributes

Remarks

Construct a Time object in the timezone named by the string argument "timezone". The time is initialized to Jan 1, 1970.

Java documentation for android.text.format.Time.Time(java.lang.String).

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.

See also

Applies to

Time(IntPtr, JniHandleOwnership)

A constructor used when creating managed representations of JNI objects; called by the runtime.

protected Time (IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Android.Text.Format.Time : nativeint * Android.Runtime.JniHandleOwnership -> Android.Text.Format.Time

Parameters

javaReference
IntPtr

nativeint

A IntPtrcontaining a Java Native Interface (JNI) object reference.

transfer
JniHandleOwnership

A JniHandleOwnershipindicating how to handle javaReference

Remarks

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