504 | | (cond ((< secs 5) "less than 5 seconds ago") |
505 | | ((< secs 10) "less than 10 seconds ago") |
506 | | ((< secs 20) "less than 20 seconds ago") |
507 | | ((< secs 30) "half a minute ago") |
508 | | ((< secs 60) "less than a minute ago") |
509 | | ((< secs 150) "1 minute ago") |
510 | | ((< secs 2400) (format "%d minutes ago" |
511 | | (/ (+ secs 30) 60))) |
512 | | ((< secs 5400) "about 1 hour ago") |
513 | | ((< secs 84600) (format "about %d hours ago" |
514 | | (/ (+ secs 1800) 3600))) |
515 | | (t (format-time-string "%I:%M %p %B %d, %Y" created-at)))) |
| 504 | (cond ((< secs 5) "less than 5 seconds ago") |
| 505 | ((< secs 10) "less than 10 seconds ago") |
| 506 | ((< secs 20) "less than 20 seconds ago") |
| 507 | ((< secs 30) "half a minute ago") |
| 508 | ((< secs 60) "less than a minute ago") |
| 509 | ((< secs 150) "1 minute ago") |
| 510 | ((< secs 2400) (format "%d minutes ago" |
| 511 | (/ (+ secs 30) 60))) |
| 512 | ((< secs 5400) "about 1 hour ago") |
| 513 | ((< secs 84600) (format "about %d hours ago" |
| 514 | (/ (+ secs 1800) 3600))) |
| 515 | (t (format-time-string "%I:%M %p %B %d, %Y" created-at)))) |
707 | | (add-text-properties 0 (length user-screen-name) |
708 | | `(mouse-face highlight |
709 | | uri ,(concat "http://twitter.com/" user-screen-name) |
710 | | username ,user-screen-name |
711 | | face twittering-username-face) |
712 | | user-screen-name) |
| 711 | (add-text-properties |
| 712 | 0 (length user-name) |
| 713 | `(mouse-face highlight |
| 714 | uri ,(concat "http://twitter.com/" user-screen-name) |
| 715 | face twittering-username-face) |
| 716 | user-name) |
| 717 | |
| 718 | ;; make screen-name clickable |
| 719 | (add-text-properties |
| 720 | 0 (length user-screen-name) |
| 721 | `(mouse-face highlight |
| 722 | face twittering-username-face |
| 723 | uri ,(concat "http://twitter.com/" user-screen-name) |
| 724 | face twittering-username-face) |
| 725 | user-screen-name) |