Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

filestat

49 views
Skip to first unread message

Marco Boschi

unread,
May 5, 2021, 8:49:17 AM5/5/21
to
Hi,
FileStats function does not return correct data in my opinion.

filediprova.txt = 05/05/21 14:22:51 05/05/21 14:22:51
05/05/21
14:23:19 << this is correct

FUNCTION MAIN( cFileName )
LOCAL cFileAttr
LOCAL nFileSize
LOCAL dCreateDate
LOCAL nCreateTime
LOCAL dChangeDate
LOCAL nChangeTime

FileStats( cFileName , ;
@cFileAttr , ;
@nFileSize , ;
@dCreateDate , ;
@nCreateTime , ;
@dChangeDate , ;
@nChangeTime )

? cFilename , "=" , dCreateDate , tstring( nCreateTime ) , ;
dChangeDate , tstring( nChangeTime )

? filedate( cFilename )
? filetime( cFilename )
RETURN NIL

Enrico Maria Giordano

unread,
May 5, 2021, 9:21:57 AM5/5/21
to


Il 05/05/2021 14:49, Marco Boschi ha scritto:

> Hi,
> FileStats function does not return correct data in my opinion.
>
> filediprova.txt = 05/05/21 14:22:51 05/05/21 14:22:51
> 05/05/21
> 14:23:19 << this is correct

I just tried with a file and got the correct result. Please, can you
send me your file so I can test it here?

EMG

http://www.emagsoftware.it
http://www.emagsoftware.it/emgmusic
http://www.emagsoftware.it/spectrum
http://www.emagsoftware.it/tbosg

Marco Boschi

unread,
May 5, 2021, 9:42:48 AM5/5/21
to
Enrico I've just sent by mail

Enrico Maria Giordano

unread,
May 5, 2021, 9:48:39 AM5/5/21
to


Il 05/05/2021 15:42, Marco Boschi ha scritto:

> Enrico I've just sent by mail

Unfortunately, the file gets the current date and time when I save it
from the email attachment. I played with it a little and found no
problem using your sample.

Marco Boschi

unread,
May 5, 2021, 9:50:25 AM5/5/21
to
probably is the old version I currentyl use (2016)
many thanks

Enrico Maria Giordano

unread,
May 5, 2021, 9:57:54 AM5/5/21
to


Il 05/05/2021 15:50, Marco Boschi ha scritto:

> probably is the old version I currentyl use (2016)

It maybe. Can you test with the latest xHarbour build?

Marco Boschi

unread,
May 5, 2021, 10:00:39 AM5/5/21
to
in the next few days many thanks Enrico
0 new messages