[fpc-devel] NowUTC in the RTL

Sven Barth pascaldragon at googlemail.com
Fri Dec 9 16:07:48 CET 2011

Am 09.12.2011 14:49, schrieb Hans-Peter Diettrich:
> Michael Van Canneyt schrieb:
>> 2. Placy a dummy routine which returns 'now' in sysutils.inc
>> function NowUTC : TDateTime;
>> begin
>> Result:=Now;
>> end;
>> {$ENDIF}
> IMO the dummy routine should return some error value, e.g. zero or NaN,
> that makes it clear to the user that something's wrong with that
> function. Else nobody will ever notice and update the implementation.

No, this is common practice in the RTL so there's no need to change that.


More information about the fpc-devel mailing list