# clanbite_human_time_ago()

A timestamp as relative wording ("5 minutes ago"), the same everywhere Clanbite shows one.

Feeds, forums and notifications call this instead of formatting their own, so a site (or a translation) changes the wording in one
place with the `clanbite_human_time_ago` filter.

```php
clanbite_human_time_ago( int $timestamp, ?int $now = null ): string
```

## Parameters

- `$timestamp` (int) Unix timestamp of the moment.
- `$now` (int|null) Unix timestamp to measure from. Default: now (`time()`). Pass `current_time( 'timestamp' )` when `$timestamp` was built from a site-local date.

## Return

`string` Text such as "5 minutes ago".

## Changelog

| Version | Description |
| --- | --- |
| 1.6.3 | Introduced |
