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. _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal