This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
time_delta() returns the difference between two times | |
expressed in many ways. | |
(mixed) $start: The initial time to calculate from | |
(mixed) $target: The time in the past or future to calculate the difference between | |
(int) $precision: | |
0: Generic - ex. "About 7 hours ago" | |
1: Approximate - ex. "7 hours, 15 minutes ago" | |
2: Exact - ex. "7 hours, 15 minutes and 6 seconds ago" |