|
|
|
|
- Notas adicionales
- Gestión de errores
cdbIntegerToDateTime (Función) Transforma el valor de una columna de Fecha y Hora (entero de 8 bytes sin signo) en un DateTime Variable.
// Find out the registration date found in column 2 ResDate = cdbCol("MyDatabase", "Customer", 2) // Convert the date RegistrationDate is DateTime = cdbIntegerToDateTime(ResDate) // Format the date RegistrationDate = DateToString(RegistrationDate) // Display the registration date Info("The registration date is: " + RegistrationDate)
Sintaxis
<Result> = cdbIntegerToDateTime(<Value to convert>)
<Result>: DateTime Valor de DateTime. <Value to convert>: Unsigned 8-byte integer Valor que debe convertirse en DateTime. Este valor es compatible con una columna Fecha y Time (entero de 8 bytes sin signo). Este valor corresponde al número de décimas de microsegundo desde el 1 de enero de 1601.. Observaciones Esta conversión provoca una pérdida de precisión: el formato DateTime no conserva el décimo de microsegundos. Atención: La función cdbIntegerToDateTime no devuelve ningún código de error. Para averiguar si esta función generó un error, utilice el ErrorOccurred Variable.
Esta página también está disponible para…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|