Release date metacommand?

General FreeBASIC programming questions.
Post Reply
xlucas
Posts: 334
Joined: May 09, 2014 21:19
Location: Argentina

Release date metacommand?

Post by xlucas »

Not sure if something like this already exists, so I am either asking if there's something to do this or otherwise, I'm making a feature suggestion.

The thing is, it would be very useful if there were a metacommand or pre-processor macro that would return a string containing the date (and maybe the time) of building of the code. I'll present it here like a constant definition, but it may be very different:

Code: Select all

Dim release As String

release = __FB_BUILD_DATE__

.
.
.

Print "My Program v1.2 - Released " & release
Print
Also, some run-time code could later parse this string and convert it to whatever format one may like. It could even not be a string, but several numbers. Anyway... is there anything that does this currently? Cheers!
adeyblue
Posts: 300
Joined: Nov 07, 2019 20:08

Re: Release date metacommand?

Post by adeyblue »

They do already exist

__DATE__
__DATE_ISO__
__TIME__
xlucas
Posts: 334
Joined: May 09, 2014 21:19
Location: Argentina

Re: Release date metacommand?

Post by xlucas »

Great! Thank you so much!!
Where can a find a least of these definitions? I didn't find them when I was looking at the wiki. Surely not looking at the right place
St_W
Posts: 1626
Joined: Feb 11, 2009 14:24
Location: Austria
Contact:

Re: Release date metacommand?

Post by St_W »

Post Reply