[fpc-devel]1.0.6 sysutils bug

Pierre Muller pierre at idefix.wisa.be
Mon May 20 23:13:13 CEST 2002


At 14:31 20/05/02 -0300, you wrote:
>I just fund a problem in sysutils shipped with fpc version 1.0.6-beta
>[2002/04/30].
>
>The function FormatDateTime always returns 5 for the minutes.
>
>This is an example:
>
>uses sysutils;
>begin
>Writeln(FormatDateTime('YYYYMMDD hhmmss',now));
>end.
You have to use nn for minutes, not mm!

Writeln(FormatDateTime('YYYYMMDD hhnnss',now));
should work correctly
>[anv at anv tmp]$ ./a
>20020520 140517
>
>[anv at anv tmp]$ date
>lun may 20 14:31:17 ART 2002
>
>
>-- 
>Alejandro NĂ©stor Vargas
>anv at xnetcuyo.com.ar
>ICQ: 20528995.
>Departamento de Desarrollo
>X Net Cuyo S.A.
>
>
>
>_______________________________________________
>fpc-devel maillist  -  fpc-devel at lists.freepascal.org
>http://lists.freepascal.org/mailman/listinfo/fpc-devel
>





More information about the fpc-devel mailing list