Non-working holidays
Non-working holidays in the Russian Federation are:
January 1, 2, 3, 4 and 5 - New Year holidays;
January 7 - Christmas;
February 23 - Defender of the Fatherland Day;
March 8 - International Women's Day;
May 1 - Spring and Labor Day;
May 9 - Victory Day;
June 12 - Day of Russia;
November 4 - National Unity Day.
')
If the weekend and non-working holidays coincide, the day off is postponed to the next working day after the holiday.
echo BankDay::getEndDate( '2008-10-14' , 10, 'dmY' );
//28.10.2008
echo BankDay::getEndDate( 'now' , 10);
//1229008080
echo BankDay::getNumDays( '2008-02-25' , '2008-03-15' );
//13
echo BankDay::getNumDays( 'now' , '10 days' );
//7
echo BankDay::isWorkDay( '2009-01-06' );
//false
* This source code was highlighted with Source Code Highlighter .
— «» = «» = «»
echo BankDay::getEndDate( '2008-10-14' , 10, 'dmY' );
//28.10.2008
echo BankDay::getEndDate( 'now' , 10);
//1229008080
echo BankDay::getNumDays( '2008-02-25' , '2008-03-15' );
//13
echo BankDay::getNumDays( 'now' , '10 days' );
//7
echo BankDay::isWorkDay( '2009-01-06' );
//false
* This source code was highlighted with Source Code Highlighter .
— «» = «» = «»
echo BankDay::getEndDate( '2008-10-14' , 10, 'dmY' );
//28.10.2008
echo BankDay::getEndDate( 'now' , 10);
//1229008080
echo BankDay::getNumDays( '2008-02-25' , '2008-03-15' );
//13
echo BankDay::getNumDays( 'now' , '10 days' );
//7
echo BankDay::isWorkDay( '2009-01-06' );
//false
* This source code was highlighted with Source Code Highlighter .
— «» = «» = «»
Source: https://habr.com/ru/post/67092/
All Articles