Formats a time interval depending on the size according to:
- just now - interval < 1 min
- 2 min ago - interval < 30 mins
- 3:17 AM - today
- Yesterday, 3:17 AM - yesterday
- Jan. 10, 7:12 AM - current year
- Jan. 10,2015, 7:12 AM - less than the current year
public static getIncrescentTimeInterval ( $value, $currentTime = null ) : string | ||
Résultat | string |