CHMlib Logo Leading Translation Management System for Translation Agencies, Top Translation Management Software for Freelance Translators, Time Tracking Software, Word Count, Character Count and Line Count Software, Computer Assisted Translation Tool for Easy Word Count, Clipboard Character Count Software, User-Friendly Translation Memory Software, Terminology Management Software, Terminology Management Server, Microsoft Glossary Software, Dictionary of Acronyms, Social Network for Translators and Translation Agencies, Acronyms and Abbreviations Search Engine, Russian Translation Lab, Ukrainian Translation Lab.
You are reading help file online using chmlib.com
PSCCalcWorkDays

PSCCalcWorkDays function

Calculates number of working days in the specified dates range.

function PSCCalcWorkDays(Const StartDate, FinishDate: TDateTime; Const Countries: Array of TPSCCountryID; CustomHolidays: TPSCHolidayItems; DefaultHolidays: Boolean; WorkDays: TPSCWeekDays; ExcludeEvent: TPSCDateSelectedProc): Integer;

Unit
psc_calendar

Description
Use PSCCalcWorkDays to calculate number of working days which are in the specified dates range. Workling days are calculated as number of all days between StartDate and FinishDate minus all the holidays which occur during that time. Holidays can be specified as country holidays (in this case pass list of countries in the Countries parameter), as custom holidays defined by CustomHolidays or using custom event passed as ExcludeEvent parameter. Any of the parameters of PSCCalcWorkDays can be set to nil. Set DefaultHolidays parameter to True if you want to exclude holidays for the country which is set as default in locale settings in the operating system. WorkDays parameter specify working days during the week (Ex: Mon-Fri).

See also:
TPSCDateSelectedProc, TPSCHolidayItems


Generated by Putersoft.FreeHelp. Copyright © 1999-2002. puterSoft.Com
You are reading help file online using chmlib.com


If you want your help file to be removed or added please send e-mail to chmlibcom@gmail.com