Udostępnij za pośrednictwem


Timestamp.ValueOf(String) Method

Definition

Converts a String object in JDBC timestamp escape format to a Timestamp value.

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

Parameters

s
String

timestamp in format yyyy-[m]m-[d]d hh:mm:ss[.f...]. The fractional seconds may be omitted. The leading zero for mm and dd may also be omitted.

Returns

corresponding Timestamp value

Attributes

Exceptions

if the provided string is null.

Remarks

Converts a String object in JDBC timestamp escape format to a Timestamp value.

Java documentation for java.sql.Timestamp.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