Method | Description | |
---|---|---|
__construct ( string $date ) | ||
create ( string $date ) : |
Creates TimeAgo object for passed date. | |
getKey ( ) : string | ||
getParams ( ) : array |
Method | Description | |
---|---|---|
dateAsTimestamp ( ) : integer | ||
getDateDiff ( ) : integer | ||
isSameDay ( ) : boolean | ||
nowAsTimestamp ( ) : integer | ||
prepare ( ) : void | ||
showJustNow ( ) : boolean | ||
showMinutesAgo ( ) : integer | null | ||
showThisYear ( ) : boolean | ||
showTodayAt ( ) : boolean | ||
showYesterdayAt ( ) : boolean |