flat assembler
Message board for the users of flat assembler.

Index > DOS > File modification date

Author
Thread Post new topic Reply to topic
tomo7999



Joined: 22 Apr 2015
Posts: 2
tomo7999 22 Apr 2015, 12:16
Hello.

I am having some trouble with getting file last modification date/time.

So I got my DTA which looks like this:

Code:
DTA     db      21      dup     (0)                     ; DTA table
fattr   db      0                                       ; file attr
fmod_time       dw      0                               ; last modification time
fmod_date       dw      0                               ; last modification date
fsize   dd      0                                       ; file size
fname   db      13      dup     (0),"$"                 ; file name    


So, my question is:
How do I convert numbers from fmod_time and fmod_date to time and date so I can print it out?

Thanks for help.
Post 22 Apr 2015, 12:16
View user's profile Send private message Reply with quote
AsmGuru62



Joined: 28 Jan 2004
Posts: 1619
Location: Toronto, Canada
AsmGuru62 22 Apr 2015, 15:13
Post 22 Apr 2015, 15:13
View user's profile Send private message Send e-mail Reply with quote
tomo7999



Joined: 22 Apr 2015
Posts: 2
tomo7999 22 Apr 2015, 17:19
Thanks for helping.

That solved my problem Smile
Post 22 Apr 2015, 17:19
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.