[fpc-pascal] WeekDay outdated?

Jonas Maebe jonas.maebe at elis.ugent.be
Mon Aug 13 11:08:14 CEST 2012


Jürgen Hestermann wrote on Sun, 12 Aug 2012:

> I am not able to use this function:
> http://www.freepascal.org/docs-html/rtl/dos/weekday.html
> nor can I find it in the sources.
> Does it still exist?
> If yes, how to use it? Which unit? DOS does not work.

The weekday function only exists in the unix version of the Dos unit.  
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).

The generic function to calculate the day of the week is  
http://www.freepascal.org/docs-html/rtl/sysutils/dayofweek.html


Jonas



More information about the fpc-pascal mailing list