TwistPHP Documentation

prettyAge

File path: dist/twist/Core/Utilities/DateTime.utility.php
Namespace: Twist\Core\Utilities
Extends: Base

prettyAgeGet a nicely formatted string for the age of a timestamp eg. 'A moment ago' or 'In 3 Hours'

Parameters

Name Type Description
$intTimestampintegern/a

Return Values

void — No return information has been documented for this function.

Example

<?php
//Set the variables for the example
$intTimestamp 124;

//Call the function prettyAge with the example vars
Twist::DateTime() -> prettyAge($intTimestamp);