Hola...
Me imagino que revisaste en la ayuda de
Delphi:
Cita:
Empezado por Delphi Help
From DateUtils.pas
Código Delphi [-]
function MinuteSpan(const ANow: TDateTime; const AThen: TDateTime): Double;
Description
Returns the number of minutes, including fractions thereof, between two specified TDateTime values.
Call MinuteSpan to obtain the difference, in minutes, between two TDateTime values. Unlike the MinutesBetween function, which only counts entire minutes, MinuteSpan reports incomplete minutes as a fraction of an entire minute.
|
Si te fijas, el valor devuelto por la función es del tipo
Double, no
TDateTime, esto es, que la forma correcta de mostrarlo sería:
Código Delphi
[-]
ShowMessage(FloatToStr(Diferencia));
Si usas la función
MinutesBetween, el valor devuelto es un
Int64 y la forma de mostrarlo sería:
Código Delphi
[-]
ShowMessage(IntToStr(Diferencia));
Saludos...