Graeme Geldenhuys escreveu:
2010/1/22 Luiz Americo Pereira Camara <[email protected]>:
const
 cCompileDate = {$I %date%};
 cCompileTime = {$I %time%};

I couldn't find a way of formatting the date and time to my locale (under
Linux, not sure for other platforms). It seems to be hard-coded, so you
will have to parse and format it manually.
...
The returned value is also hardcoded under windows. I  need to parse using
ScanDateTime from DateUtils


I wonder if we should file that as a bug for FPC

I think of that (in fact i started writing the bug report) but since is defined at compiler time it will not be possible AFAIK to use the ShortDateFormat at runtime (say you compile in a yyyy/mm/dd system and run in a dd/mm/yyyy you will still get yyyy/mm/dd)

Luiz

--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to