human_time_diff ( $from, $to = '' )
- (int) $from Unix timestamp from which the difference begins.
- (int) $to Optional. Unix timestamp to end the time difference. Default becomes time() if not set.
- (string) Human readable time difference.
- Introduced in WordPress: 1.5.0
- Deprecated in WordPress: —
Determines the difference between two timestamps.
The difference is returned in a human readable format such as "1 hour",
"5 mins", "2 days".