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

Как текущую получить дату и время в Unix формате   Найти похожие ветки 

← →
stur ©   (2003-02-19 12:11) [0]

Т.е. число секунд прошедших с 1970 года.


← →
Chubais ©   (2003-02-19 13:42) [1]

secondsbetween(StrToDate("01.01.1970"),Now)?


← →
han_malign ©   (2003-02-19 14:08) [2]

SysUtils
Result:=round((Now-EncodeDate(1970,1,1))*24*3600)

WinAPI
var st: TSystemTime;
ft,ft1970: TFileTime;
begin
FillChar(st,sizeof(st),0);
with st do begin
wYear:=1970;
wMonth:=1;
wDay:=1;
end;
SystemTimeToFileTime(st,ft1970);
GetLocalTime(st);
SystemTimeToFileTime(st,ft);
Result:=(int64(ft)-int64(ft1970))div 10000000;
end;



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

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



Память: 0.45 MB
Время: 0.011 c
14-5784
Nickola2
2003-02-12 16:55
2003.03.03
Вопрос


1-5480
mate
2003-02-20 15:01
2003.03.03
QRRichText и RichEdit


1-5545
OneOfTheFew
2003-02-19 13:38
2003.03.03
Меню программы.Как прочитать из *.exe ?


7-5881
GIL
2003-01-03 06:36
2003.03.03
Работа с модемом


1-5527
Checist [root]
2003-02-21 11:02
2003.03.03
Отображение текста в Memo




   Наверх