File path: dist/twist/Core/Utilities/DateTime.utility.php
Namespace: Twist\Core\Utilities
Extends: Base
prettyTime
— Turn a number of seconds into a nicely formatted string eg. '1 Day 2 Hours' or 1d 2h
Name | Description |
---|---|
$intSeconds | n/a |
[$blShortLabels = false] | n/a |
void — No return information has been documented for this function.
<?php
//Set the variables for the example
$intSeconds = 124;
$blShortLabels = false;
//Call the function prettyTime with the example vars
Twist::DateTime() -> prettyTime($intSeconds, $blShortLabels);