File path: dist/twist/Core/Utilities/DateTime.utility.php
Namespace: Twist\Core\Utilities
Extends: Base
prettyAge
— Get a nicely formatted string for the age of a timestamp eg. 'A moment ago' or 'In 3 Hours'
Name | Description |
---|---|
$intTimestamp | n/a |
void — No return information has been documented for this function.
<?php
//Set the variables for the example
$intTimestamp = 124;
//Call the function prettyAge with the example vars
Twist::DateTime() -> prettyAge($intTimestamp);