This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * Calculated the number of weekdays (M-F) between two timestamps (inclusive). | |
| * | |
| * @param string $from the timestamp to start measuring from | |
| * @param string $to the timestamp to stop measuring at | |
| * @param string $normalise whether the time of day should be ignored (forces times to yyyy-mm-ddT00:00:00+00:00) | |
| * @return int the number of weekdays between the two timestamps | |
| * @author Matt Harris | |
| */ |