Вниз
Скачать: CL | DM;

как можна проверить, что файл создан сегодня?   Найти похожие ветки 

 
kand ©   (2004-09-10 16:55) [0]

Если сегодня, то выдыть "Сегодня", а если 10 дней назад, то дату создания.


 
kukuikar ©   (2004-09-10 17:09) [1]

function GetFileDateTime(FileName: string): TDateTime;
var
 intFileAge: LongInt;
begin
 intFileAge := FileAge(FileName);
 if intFileAge = -1 then
   Result := 0
 else
   Result := FileDateToDateTime(intFileAge)
end;

if GetFileDateTime<>NOW then
ShowMessage(DateTimeToStr(GetFileDateTime));


 
kukuikar ©   (2004-09-10 17:15) [2]

if GetFileDateTime<>NOW then
ShowMessage(DateTimeToStr(GetFileDateTime))
else
ShowMessage("Сегодня");


 
palva   (2004-09-10 17:25) [3]

if Trunc(GetFileDateTime("filename"))<>Trunc(Now) then
   ShowMessage(DateTimeToStr(GetFileDateTime("filename")))
 else
   ShowMessage("Сегодня");



Страницы: 1 вся ветка

Скачать: CL | DM;



Память: 0.45 MB
Время: 0.02 c
14-1094813074
Hint
2004-09-10 14:44
2004.09.26
Проблема с компьютером


14-1094206481
kvit
2004-09-03 14:14
2004.09.26
Модем и регистр S0!


14-1094194529
PVOzerski
2004-09-03 10:55
2004.09.26
Что бы это мог быть за вирус?


14-1094522995
Думкин
2004-09-07 06:09
2004.09.26
С днем рождения! 7 августа


1-1094894316
zero-g
2004-09-11 13:18
2004.09.26
Как поймать курсор в RichEdit




   Наверх