[fpc-devel] Add {$I %DATETIME%}

wkitty42 at windstream.net wkitty42 at windstream.net
Tue Feb 23 16:24:31 CET 2016


On 02/23/2016 06:25 AM, Denis Kozlov wrote:
> Can someone apply the patch for adding %DATETIME%, if there are no objections?

is there something wrong with what is already available??

eg:
procedure TMyApplication.DisplayVersion;

begin
   writeln;
   writeln(prog_name + {$IFDEF DEBUG} ' DEBUG' + {$ENDIF} ' version ' + prog_ver 
+ ' [' + {$I %DATE%} + ' ' + {$I %TIME%} + ']');
   writeln('Compiled with FPC ' + {$I %FPCVERSION%} + ' for ' + {$I 
%FPCTARGETOS%} + ' running on ' + {$I %FPCTARGETCPU%});
   writeln;
end;



-- 
  NOTE: No off-list assistance is given without prior approval.
        *Please keep mailing list traffic on the list* unless
        private contact is specifically requested and granted.



More information about the fpc-devel mailing list