equal
deleted
inserted
replaced
1880 * Format a time as a reference to a day, with user-friendly "X days ago"/"Today"/"Yesterday" returned when relevant. |
1880 * Format a time as a reference to a day, with user-friendly "X days ago"/"Today"/"Yesterday" returned when relevant. |
1881 * @param int UNIX timestamp |
1881 * @param int UNIX timestamp |
1882 * @return string |
1882 * @return string |
1883 */ |
1883 */ |
1884 |
1884 |
1885 function format_date($time) |
1885 public static function format_date($time) |
1886 { |
1886 { |
1887 global $lang; |
1887 global $lang; |
1888 // Our formattting string to pass to enano_date() |
1888 // Our formattting string to pass to enano_date() |
1889 // This should not include minute/second info, only today's date in whatever format suits your fancy |
1889 // This should not include minute/second info, only today's date in whatever format suits your fancy |
1890 $formatstring = 'F j, Y'; |
1890 $formatstring = 'F j, Y'; |