PHP Date Percent: Calculate the percentage of the days that passed

Recommend this page to a friend!
  Info   View files View files (1)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2020-01-12 (8 months ago) RSS 2.0 feedNot enough user ratingsTotal: 122 This week: 1All time: 9,161 This week: 278Up
Version License PHP version Categories
a_ 1.0.0Freeware5PHP 5, Time and Date
Description Author

This class can calculate the percentage of the days that passed.

It determines the current day of the month and calculates the percentage of days that passed since the beginning of the month relatively to the total number of days in the month.

The class can also calculate the percentage of days that passed since the beginning of the year relatively to the total number of days in the year.

Innovation Award
PHP Programming Innovation award nominee
January 2020
Number 8
Some applications need to show how many days passed since the beginning of the month or from the beginning of the year.

This class goes farther and instead of returning the number of days that passed, it can return a percentage of the number of days that passed relative the whole period that is considered, which can be one month or one year.

Manuel Lemos
Picture of Dannel
  Performance   Level  
Name: Dannel <contact>
Classes: 7 packages by
Country: Cuba Cuba
Age: 27
All time rank: 333310 in Cuba Cuba
Week rank: 148 Up1 in Cuba Cuba Up
Innovation award
Innovation award
Nominee: 4x

  Files folder image Files  
File Role Description
Plain text file datePercent.php Class Class and example

 Version Control Unique User Downloads Download Rankings  
 0%
Total:122
This week:1
All time:9,161
This week:278Up

For more information send a message to info at phpclasses dot org.