1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
|
#include <sysutils.hpp>
#include <math.h>
#include <vcl.h>
#pragma hdrstop
#ifndef DATEUTILSH
#define DATEUTILSH
TDateTime __fastcall IncSecond(const TDateTime &AValue, const __int64
ANumberOfSeconds = 1)
{
return ( ( ( ((double)AValue) * 86400 ) + ANumberOfSeconds ) /
86400 );
}
TDateTime __fastcall IncMinute(const TDateTime &AValue, const __int64
ANumberOfMinutes = 1)
{
return ( ( ( ((double)AValue) * 1440 ) + ANumberOfMinutes ) /
1440 );
}
TDateTime __fastcall IncHour(const TDateTime &AValue, const __int64
ANumberOfMinutes = 1)
{
return ( ( ( ((double)AValue) * 24 ) + ANumberOfMinutes ) /
24 );
}
#endif |
Partager