Publisher review:Duration is a class for making time periods readable. A class for making time periods readable.
This class allows for the conversion of an integer number of seconds into a readable string. For example, '121' into '2 minutes, 1 second'.
If an array is passed to the class, the associative keys are used for the names of the time segments. For example, array('seconds' => 12, 'minutes' => 1) into '1 minute, 12 seconds'.
This class is plural aware. Time segments with values other than 1 will have an 's' appended. For example, '1 second' not '1 seconds'.
Duration 1.2.1 is a PHP script for Snippets scripts design by Aidan.
It runs on following operating system: Windows / Linux / Mac OS / BSD / Solaris.
Operating system:Windows / Linux / Mac OS / BSD / Solaris