Udostępnij za pośrednictwem


Time.ValueOf(String) Method

Definition

Converts a string in JDBC time escape format to a Time value.

[Android.Runtime.Register("valueOf", "(Ljava/lang/String;)Ljava/sql/Time;", "")]
public static Java.Sql.Time? ValueOf (string? s);
[<Android.Runtime.Register("valueOf", "(Ljava/lang/String;)Ljava/sql/Time;", "")>]
static member ValueOf : string -> Java.Sql.Time

Parameters

s
String

time in format "hh:mm:ss"

Returns

a corresponding Time object

Attributes

Exceptions

if the supplied time string is not in JDBC escape format.

Remarks

Converts a string in JDBC time escape format to a Time value.

Java documentation for java.sql.Time.valueOf(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.

Applies to