[fpc-devel] NowUTC in the RTL

Hans-Peter Diettrich DrDiettrich1 at aol.com
Fri Dec 9 14:49:22 CET 2011


Michael Van Canneyt schrieb:

> 2. Placy a dummy routine which returns 'now' in sysutils.inc
> {$IFNDEF FPC_HAS_NOWUTC}
> 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.

DoDi




More information about the fpc-devel mailing list