[fpc-devel] TimeReFormat in FormatDateTime

Michael Van Canneyt michael at freepascal.org
Tue Apr 8 19:44:59 CEST 2008



On Tue, 8 Apr 2008, petr.kristan at epos.cz wrote:

> > Yes. I tested it with dissabled functionality of TimeReFormat:
> > 
> >    Function TimeReFormat(Const S : string) : string;
> >    // Change m into n for time formatting.
> >    //Var i : longint;
> > 
> >    begin
> >      Result:=S;
> >      {For I:=1 to Length(Result) do //We cannot do that, am/pm does not then work
> >        If Result[i]='m' then
> >          result[i]:='n';}
> >    end;
> > 
> > But I think, that cleaner will be remove function TimeReFormat completly
> > not only dissable functionality (superfluous call).
> In the attachment is patch with TimeReFormat removed. Patch is tested, 
> hh:mm:ss and hh:nn:ss works identically.

Excellent. I committed the patch, thank you very much !

Michael.



More information about the fpc-devel mailing list