FTP | CCD | Buscar | Trucos | Trabajo | Foros |
|
Registrarse | FAQ | Miembros | Calendario | Guía de estilo | Temas de Hoy |
|
Herramientas | Buscar en Tema | Desplegado |
#1
|
|||
|
|||
Diferencia de minutos entre dos TDateTime
Un saludo primero que nada, tengo un problema al sacar la diferencia entre 2 variables TDateTime, almaceno en 2 variables tiempo1, tiempo2 y almaceno la diferencia en otra variable TDateTime.
La verdad es que ya busqué en bastantes hilos de este foro y he quedado más confundido, espero que puedan ayudarme y de antemano muchas gracias. |
#2
|
|||
|
|||
Hola...
¿Ya verificaste bien cual es el tipo de dato que devuelven esas funciones? Por que según creo recordar, devuelven tipos enteros y no tipos TDateTime. Saludos... |
#3
|
|||
|
|||
De hecho me interesa recuperarlo como entero para saber si hay una diferencia menor a 10 minutos pero la verdad soy nuevo en esto y estaba investigando pero me he confundido más :s. Saludos!.
|
#4
|
|||
|
|||
Hola...
Me imagino que revisaste en la ayuda de Delphi: Cita:
Si usas la función MinutesBetween, el valor devuelto es un Int64 y la forma de mostrarlo sería:
Saludos... |
#5
|
|||
|
|||
Cierto, ya he visualizado bien el resultado y muchísimas gracias por su ayuda, el error estaba en mí. Saludos.
|
#6
|
||||
|
||||
Cita:
Saludos, Chris PD.: Ten cuidado con la función StrToDateTime. Según la ayuda de Delphi: Cita:
|
|
|
Temas Similares | ||||
Tema | Autor | Foro | Respuestas | Último mensaje |
calculo de diferencia entre dos horas y minutos | gonza_619 | Varios | 1 | 22-05-2010 20:35:31 |
Diferencia 2 Dias entre Tdatetime (delphi) y Datetime (SQL server) | sinalocarlos | Varios | 2 | 10-05-2007 03:00:38 |
Numero de dias entre fechas (TDateTime) | sierraja | Varios | 4 | 26-04-2005 18:29:02 |
minutos entre dos fechas | jmlifi | Firebird e Interbase | 3 | 15-04-2005 12:39:36 |
|