ahora

ahora is a simple PHP library which provides a way to easily sum up a series of time intervals and output the elapsed time in days, hours, minutes, and/or seconds.

ahora example usage

The library also allows you to specify custom time units to suit your needs - want to calculate the number of weeks? Or change the number of hours in a day to calculate business days? Easy.

More information is available via Packagist

Installation

> composer require savvywombat/ahora