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

DateTime   Найти похожие ветки 

← →
vajo   (2002-06-05 11:15) [0]

37047.532 -> это " 05.06.2001 12:46:04 ".
А если есть " 05.06.2001 12:46:04 ", то как получить число (37047.532)


← →
Kaban   (2002-06-05 11:17) [1]

function StrToDateTime(const S: string): TDateTime;

Description

Call StrToDate to parse a string that specifies a date and time value. If S does not contain a valid date, StrToDate raises an EConvertError exception.

The S parameter must be in the MM/DD/YY HH:MM:SS format. Specifying AM or PM as part of the time is optional, as are the seconds. Use 24-hour time (7:45 PM is entered as 19:45, for example) if AM or PM is not specified.

Y2K issue: The conversion of two-digit year values is determined by the TwoDigitYearCenturyWindow variable. For more information, see StrToDate.

Note: The format of the date and time string varies when the values of date/time formatting variables are changed.


← →
Anatoly Podgoretsky ©   (2002-06-05 11:20) [2]

FloatToStr


← →
Kaban   (2002-06-05 11:22) [3]

2 Anatoly Podgoretsky
А при чем тут FloatToStr?


← →
MBo ©   (2002-06-05 13:29) [4]

>Kaban
DateTime=Double


← →
Kaban   (2002-06-05 13:38) [5]

2 MBo
Сам знаю, и что дальше?


← →
MBo ©   (2002-06-05 13:45) [6]

edit1.text:=floattostr(now);
получается 37412.69536875

edit1.text:=formatfloat("00000.000",StrTodateTIme("05.06.2001 12:46:04"));
==> 37047.532


← →
Kaban   (2002-06-05 13:55) [7]

>>37047.532 -> это " 05.06.2001 12:46:04 ".
>>А если есть " 05.06.2001 12:46:04 ", то как получить число (37047.532)

Т.е. у человека уже есть строка и он хочет получить число
Вот здесь и пригодится StrTodateTIme
а floattostr(now) тут совершенно не причем




← →
MBo ©   (2002-06-05 14:11) [8]

Согласен



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

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



Память: 0.46 MB
Время: 0.012 c
14-55279
MJH
2002-05-11 20:23
2002.06.17
NitroAmp 074XPbeta1 - НАКОНЕЦ!!!!!


4-55376
Adolph
2002-04-11 22:42
2002.06.17
Убить процесс в W98


14-55313
VID
2002-05-15 15:39
2002.06.17
Где можно достать код? :)))


1-55116
Kuper
2002-06-06 12:48
2002.06.17
Люди, помогете пожалуйста, появился такой вопрос


3-54977
strel
2002-05-21 21:32
2002.06.17
Есть ли возможность подключения к MySQL ??




   Наверх