Skip to content

Get DateTime Difference Between Two Dates and use pluralize function to format the output.

License

Notifications You must be signed in to change notification settings

osparkle/PHP-Get-DateTime-Difference-Function

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

PHP-Get-DateTime-Difference-Function

Get DateTime Difference Between Two Dates and use pluralize function to format the output.

The function returns the difference in number of years, months, days, hours, minues and seconds.

USAGE

$datetime1 = "2017-Oct-12 12:00:00";

$datetime2 = "2020-Dec-15 12:00:00";

echo getTimeDiff($datetime1, $datetime2);

About

Get DateTime Difference Between Two Dates and use pluralize function to format the output.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages