[fpc-pascal] WeekDay outdated?

Jürgen Hestermann juergen.hestermann at gmx.de
Mon Aug 13 11:36:27 CEST 2012

Am 2012-08-13 11:08, schrieb Jonas Maebe:
> The weekday function only exists in the unix version of the Dos unit. 
That's strange (and not documented).

> It should probably either be removed from its interface, or added to the common part of the Dos unit (there's nothing unix-specific about it).
It should definitely be added (see below).

> The generic function to calculate the day of the week is http://www.freepascal.org/docs-html/rtl/sysutils/dayofweek.html
Yes, but requires an intermediate TDateTime parameter.
Weekday would be much easier and direct.

More information about the fpc-pascal mailing list