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.
_______________________________________________
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel

Reply via email to