flat assembler
Message board for the users of flat assembler.

flat assembler > Main > Current Date and Time Directives

Author
Thread Post new topic Reply to topic
comrade



Joined: 16 Jun 2003
Posts: 1131
Location: Russian Federation
Is it possible to have @Time and @Date directives, like in MASM, but perhaps one directive for day, one for month, one for year, one for hour, etc. So you could do like:
Code:
about db "compiled on ", __DAY,".", __MONTH,".", __YEAR," ",__HOUR,":",__MINUTE,":",__SECOND,0    


With each constant being a two-digit string (03.10.2003 22:04:32).

_________________
comrade (comrade64@live.com; http://comrade.ownz.com/)
Post 04 Oct 2003, 02:04
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger ICQ Number Reply with quote
Tommy



Joined: 17 Jun 2003
Posts: 492
Location: Norway
Yes, a good idea comrade! What about date.day, date.month, date.year, time.hour, time.minute and time.second?

Regards,
Tommy
Post 04 Oct 2003, 07:17
View user's profile Send private message Visit poster's website Reply with quote
scientica
Retired moderator


Joined: 16 Jun 2003
Posts: 689
Location: Linköping, Sweden
I agree that it would be great with a such feature, what does our root (Wink Privalov) say?

_________________
... a professor saying: "use this proprietary software to learn computer science" is the same as English professor handing you a copy of Shakespeare and saying: "use this book to learn Shakespeare without opening the book itself.
- Bradley Kuhn
Post 04 Oct 2003, 10:34
View user's profile Send private message Visit poster's website MSN Messenger ICQ Number Reply with quote
comrade



Joined: 16 Jun 2003
Posts: 1131
Location: Russian Federation
I think he would say this has to be platform independent.

_________________
comrade (comrade64@live.com; http://comrade.ownz.com/)
Post 05 Oct 2003, 03:00
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger ICQ Number Reply with quote
Yawgmoth



Joined: 20 Aug 2003
Posts: 37
But this is assembley programming! There's no way it could be platform independent.
Post 05 Oct 2003, 10:30
View user's profile Send private message Reply with quote
JohnFound



Joined: 16 Jun 2003
Posts: 3499
Location: Bulgaria
Yawgmoth wrote:
But this is assembley programming! There's no way it could be platform independent.


Wrong. This is frequent mistake. Smile
FASM proves that assembly programs can be platform independent.

BTW: Interface modules of FASM have some function for date/time. FASM uses internaly date/time information, so this information is accesible.
Post 05 Oct 2003, 11:04
View user's profile Send private message Visit poster's website ICQ Number Reply with quote
Tomasz Grysztar
Assembly Artist


Joined: 16 Jun 2003
Posts: 7272
Location: Kraków, Poland
Yes, core already uses an interface function for getting timestamp - so it'd be very simple to provide some variable with the value of currect timestamp.
Post 07 Oct 2003, 15:07
View user's profile Send private message Visit poster's website 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-2019, Tomasz Grysztar.

Powered by rwasa.