Главная страница
    Top.Mail.Ru    Яндекс.Метрика
Форум: "Прочее";
Текущий архив: 2006.08.06;
Скачать: [xml.tar.bz2];

Вниз

как получить нормальное время ?   Найти похожие ветки 

 
PATRIOT ©   (2006-07-09 01:29) [0]

вообщем я получаю список файлов через TSearchRec и там есть параметр "Time", он мне дает дату в цифровом коде, а как мне переконвертировать её в нормальный вид?

типа: "03:37:00"...


 
KilkennyCat ©   (2006-07-09 01:31) [1]

Читать справку по TDateTime


 
KilkennyCat ©   (2006-07-09 01:32) [2]

Converts an OS timestamp value to TDateTime value.

Unit

SysUtils

Category

file management routines

Delphi syntax:

function FileDateToDateTime(FileDate: Integer): TDateTime;

C++ syntax:

extern PACKAGE System::TDateTime __fastcall FileDateToDateTime(int FileDate);

Description

A timestamp is a signed 32-bit integer, used by the OS to record information such as the date and time a file was modified. The precise format of a timestamp depends on the OS. Use FileDateToDateTime to convert a timestamp to a TDateTime value.

For example, use FileDateToDateTime to convert the file timestamp returned by FileGetDate or FileAge to a value that can be used with other CLX routines and properties. You may also need to use FileDateToDateTime to convert the Time field of the TSearchRec type used by the FindFirst and FindNext functions.


 
PATRIOT ©   (2006-07-09 01:35) [3]

рахмет (т.е. спасибо)


 
isasa ©   (2006-07-09 01:35) [4]

:)
А прочитать помощь по описанию структуры?

Time contains the time stamp of the file. It can be converted to a TDateTime value using FileDateToDateTime.
....
function FileDateToDateTime(FileDate: Integer): TDateTime;
......
S := FormatDateTime(""The meeting is on " dddd, mmmm d, yyyy, " at " hh:mm AM/PM", Now + 0.125);


 
isasa ©   (2006-07-09 01:37) [5]

Опа. Ночь на дворе. Пока набирал... Не одному мне на жаре не спится :)


 
KilkennyCat ©   (2006-07-09 01:40) [6]

> [5] isasa ©   (09.07.06 01:37)


ага... а мне по этой жаре стойку 19" ножовкой пилить... блин...


 
isasa ©   (2006-07-09 01:44) [7]

Ночью? Мазохист? :)


 
KilkennyCat ©   (2006-07-09 01:52) [8]

да с утра сеть делать, а там уж и понедельник...



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

Форум: "Прочее";
Текущий архив: 2006.08.06;
Скачать: [xml.tar.bz2];

Наверх





Память: 0.46 MB
Время: 0.01 c
8-1139581971
sally
2006-02-10 17:32
2006.08.06
Сохранение картинки в XML файл


15-1152129575
Petr V. Abramov
2006-07-05 23:59
2006.08.06
Птичку жалко :)


15-1152498011
Мазут Береговой
2006-07-10 06:20
2006.08.06
Не были славяне безграмотными!


3-1149195967
Glivera
2006-06-02 01:06
2006.08.06
Количество записей выданных после запроса.


3-1149058635
AGGRESSOR
2006-05-31 10:57
2006.08.06
Как программно изменить текст запроса Access?





Afrikaans Albanian Arabic Armenian Azerbaijani Basque Belarusian Bulgarian Catalan Chinese (Simplified) Chinese (Traditional) Croatian Czech Danish Dutch English Estonian Filipino Finnish French
Galician Georgian German Greek Haitian Creole Hebrew Hindi Hungarian Icelandic Indonesian Irish Italian Japanese Korean Latvian Lithuanian Macedonian Malay Maltese Norwegian
Persian Polish Portuguese Romanian Russian Serbian Slovak Slovenian Spanish Swahili Swedish Thai Turkish Ukrainian Urdu Vietnamese Welsh Yiddish Bengali Bosnian
Cebuano Esperanto Gujarati Hausa Hmong Igbo Javanese Kannada Khmer Lao Latin Maori Marathi Mongolian Nepali Punjabi Somali Tamil Telugu Yoruba
Zulu
Английский Французский Немецкий Итальянский Португальский Русский Испанский