File modified date/time

Anything QL Software or Programming Related.
Post Reply
User avatar
t0nyt
Gold Card
Posts: 385
Joined: Wed Nov 22, 2023 6:46 pm
Location: UK

File modified date/time

Post by t0nyt »

Following on from a previous post it does appear, reading online, that on floppy disks each file does have a “modified date/time” stored

Is there any Dir equivalent command or utility that displays this please?

Many thanks


User avatar
BSJR
Trump Card
Posts: 186
Joined: Sun Oct 18, 2015 12:53 pm
Location: Amsterdam
Contact:

Re: File modified date/time

Post by BSJR »

t0nyt wrote: Fri Feb 16, 2024 10:42 am Following on from a previous post it does appear, reading online, that on floppy disks each file does have a “modified date/time” stored

Is there any Dir equivalent command or utility that displays this please?

Many thanks
Toolkit 2 has two functions to do just that. FUPDT(), FBKDT() will read the update and backup dates.
FVERS() will get the version number. This increases from 1 each time the file is saved under the same name.

BSJR


User avatar
t0nyt
Gold Card
Posts: 385
Joined: Wed Nov 22, 2023 6:46 pm
Location: UK

Re: File modified date/time

Post by t0nyt »

BSJR wrote: Fri Feb 16, 2024 11:00 am
t0nyt wrote: Fri Feb 16, 2024 10:42 am Following on from a previous post it does appear, reading online, that on floppy disks each file does have a “modified date/time” stored

Is there any Dir equivalent command or utility that displays this please?

Many thanks
Toolkit 2 has two functions to do just that. FUPDT(), FBKDT() will read the update and backup dates.
FVERS() will get the version number. This increases from 1 each time the file is saved under the same name.

BSJR
Many thanks!


martyn_hill
Aurora
Posts: 933
Joined: Sat Oct 25, 2014 9:53 am

Re: File modified date/time

Post by martyn_hill »

Hi tonyt

Just to add that TK2 also has the 'WSTAT' command that acts like DIR but adds datestamp and filesize to the usual directory listing.


User avatar
tofro
Font of All Knowledge
Posts: 2702
Joined: Sun Feb 13, 2011 10:53 pm
Location: SW Germany

Re: File modified date/time

Post by tofro »

And the C68 package contains a "touch" utility that sets the update time of a file to "now".


ʎɐqǝ ɯoɹɟ ǝq oʇ ƃuᴉoƃ ʇou sᴉ pɹɐoqʎǝʞ ʇxǝu ʎɯ 'ɹɐǝp ɥO
User avatar
t0nyt
Gold Card
Posts: 385
Joined: Wed Nov 22, 2023 6:46 pm
Location: UK

Re: File modified date/time

Post by t0nyt »

Thanks all, that will all help a lot

Now I want a RTC more than ever!


User avatar
NormanDunbar
Forum Moderator
Posts: 2281
Joined: Tue Dec 14, 2010 9:04 am
Location: Leeds, West Yorkshire, UK
Contact:

Re: File modified date/time

Post by NormanDunbar »

DJToolkit has functions to read and set those dates in the file header.

WinBack used them back in the day to determine if a file needed backing up or not. Also backs up floppies and such like, not just hard discs.

Both available from Dilwyn's web page, linked as QL Homepage at the top of every forum page.

Cheers,
Norm.


Why do they put lightning conductors on churches?
Author of Arduino Software Internals
Author of Arduino Interrupts

No longer on Twitter, find me on https://mastodon.scot/@NormanDunbar.
Derek_Stewart
Font of All Knowledge
Posts: 3975
Joined: Mon Dec 20, 2010 11:40 am
Location: Sunny Runcorn, Cheshire, UK

Re: File modified date/time

Post by Derek_Stewart »

Hi,

The only RTC I had was on Gold Card, Super Gold Card, Minerva MKII, QIMI.

Could a battery be attached to the 8302 to backup the date, as shown in this QIMI diagram:
QIMI Mouse Interface.jpg

qimi_with_battery.jpg
qimi_with_battery.jpg (35.21 KiB) Viewed 242 times


This could be reproduced.


Regards,

Derek
Post Reply