Skip to content

vmarci21/php_elapsed-time

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

php elapsed-time

PHP function to calculate the elapsed time. Calculate the elapsed hours, days, weeks and years. Days, weeks and years to count the change at midnight, and not 24 hours. (yesterday 23:59 time in the next day 2:00 yesterday's result has received)

Using

Call this function, with the following parameters:

  • $tp - The time that comparison is. (Number of seconds since January 1st 1970, PHP time() function result)
  • $time - The time for which comparison is. (If not specified, the current time)

In other languages

In the code should be modified in the $days and $terms array. Comments available in Hungarian and German version as well.

About

PHP function to calculate the elapsed time.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages