Time Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
Time(Int64) |
Constructs a |
Time(IntPtr, JniHandleOwnership) |
A constructor used when creating managed representations of JNI objects; called by the runtime. |
Time(Int32, Int32, Int32) |
Obsolete.
Constructs a |
Time(Int64)
Constructs a Time
object using a milliseconds time value.
[Android.Runtime.Register(".ctor", "(J)V", "")]
public Time (long time);
[<Android.Runtime.Register(".ctor", "(J)V", "")>]
new Java.Sql.Time : int64 -> Java.Sql.Time
Parameters
- time
- Int64
milliseconds since January 1, 1970, 00:00:00 GMT; a negative number is milliseconds before January 1, 1970, 00:00:00 GMT
- Attributes
Remarks
Constructs a Time
object using a milliseconds time value.
Java documentation for java.sql.Time.Time(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
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 Java.Sql.Time : nativeint * Android.Runtime.JniHandleOwnership -> Java.Sql.Time
Parameters
- 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
Time(Int32, Int32, Int32)
Caution
deprecated
Constructs a Time
object initialized with the
given values for the hour, minute, and second.
[Android.Runtime.Register(".ctor", "(III)V", "")]
[System.Obsolete("deprecated")]
public Time (int hour, int minute, int second);
[<Android.Runtime.Register(".ctor", "(III)V", "")>]
[<System.Obsolete("deprecated")>]
new Java.Sql.Time : int * int * int -> Java.Sql.Time
Parameters
- hour
- Int32
0 to 23
- minute
- Int32
0 to 59
- second
- Int32
0 to 59
- Attributes
Remarks
Constructs a Time
object initialized with the given values for the hour, minute, and second. The driver sets the date components to January 1, 1970. Any method that attempts to access the date components of a Time
object will throw a java.lang.IllegalArgumentException
.
The result is undefined if a given argument is out of bounds.
This member is deprecated. Use the constructor that takes a milliseconds value in place of this constructor
Java documentation for java.sql.Time.Time(int, int, 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.