Lenguaje

Timestamp Constructores

Definición

Sobrecargas

Nombre Description
Timestamp(Int64)

Construye un Timestamp objeto mediante un valor de tiempo de milisegundos.

Timestamp(IntPtr, JniHandleOwnership)

Constructor utilizado al crear representaciones administradas de objetos JNI; llamado por el tiempo de ejecución.

Timestamp(Int32, Int32, Int32, Int32, Int32, Int32, Int32)
Obsoletos.

Construye un Timestamp objeto inicializado con los valores especificados.

Timestamp(Int64)

Construye un Timestamp objeto mediante un valor de tiempo de milisegundos.

[Android.Runtime.Register(".ctor", "(J)V", "")]
public Timestamp(long time);
[<Android.Runtime.Register(".ctor", "(J)V", "")>]
new Java.Sql.Timestamp : int64 -> Java.Sql.Timestamp

Parámetros

time
Int64

milisegundos desde el 1 de enero de 1970, 00:00:00 GMT. Un número negativo es el número de milisegundos antes del 1 de enero de 1970, 00:00:00 GMT.

Atributos

Comentarios

Construye un Timestamp objeto mediante un valor de tiempo de milisegundos. Los segundos enteros se almacenan en el valor de fecha subyacente; las fracciones de segundos se almacenan en el nanos campo del Timestamp objeto .

Java documentación para java.sql.Timestamp.Timestamp(long).

Las partes de esta página son modificaciones basadas en el trabajo creado y compartido por el Android y se usan según los términos descritos en creative Creative Commons 2.5 Attribution License.

Se aplica a

Timestamp(IntPtr, JniHandleOwnership)

Constructor utilizado al crear representaciones administradas de objetos JNI; llamado por el tiempo de ejecución.

protected Timestamp(IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Java.Sql.Timestamp : nativeint * Android.Runtime.JniHandleOwnership -> Java.Sql.Timestamp

Parámetros

javaReference
IntPtr

nativeint

que IntPtrcontiene una referencia de objeto Java Native Interface (JNI).

transfer
JniHandleOwnership

un JniHandleOwnershipvalor de tipo que indica cómo controlar javaReference

Comentarios

Las partes de esta página son modificaciones basadas en el trabajo creado y compartido por el Android y se usan según los términos descritos en creative Creative Commons 2.5 Attribution License.

Se aplica a

Timestamp(Int32, Int32, Int32, Int32, Int32, Int32, Int32)

Precaución

deprecated

Construye un Timestamp objeto inicializado con los valores especificados.

[Android.Runtime.Register(".ctor", "(IIIIIII)V", "")]
[System.Obsolete("deprecated")]
public Timestamp(int year, int month, int date, int hour, int minute, int second, int nano);
[<Android.Runtime.Register(".ctor", "(IIIIIII)V", "")>]
[<System.Obsolete("deprecated")>]
new Java.Sql.Timestamp : int * int * int * int * int * int * int -> Java.Sql.Timestamp

Parámetros

year
Int32

el año menos 1900

month
Int32

De 0 a 11

date
Int32

De 1 a 31

hour
Int32

De 0 a 23

minute
Int32

De 0 a 59

second
Int32

De 0 a 59

nano
Int32

De 0 a 999.999.999

Atributos

Excepciones

si alguno de los parámetros está fuera del intervalo.

Comentarios

Construye un Timestamp objeto inicializado con los valores especificados.

Este miembro está en desuso. en su lugar, use el constructor Timestamp(long millis)

Java documentación para java.sql.Timestamp.Timestamp(int, int, int, int, int, int, int).

Las partes de esta página son modificaciones basadas en el trabajo creado y compartido por el Android y se usan según los términos descritos en creative Creative Commons 2.5 Attribution License.

Se aplica a