WordPress at a glance
function is not described

WP_Media_List_Table::column_date() WP 4.3.0

Handles the date column output.

This is a method of the class: WP_Media_List_Table

No Hooks.

Return

Null. Nothing.

Usage

$WP_Media_List_Table = new WP_Media_List_Table();
$var = $WP_Media_List_Table->column_date( $post );
$post(WP_Post) (required)
The current WP_Post object.

Changelog

Since 4.3.0 Introduced.

Code of WP Media List Table::column date: wp-admin/includes/class-wp-media-list-table.php WP 5.2.2

<?php
public function column_date( $post ) {
	if ( '0000-00-00 00:00:00' === $post->post_date ) {
		$h_time = __( 'Unpublished' );
	} else {
		$m_time = $post->post_date;
		$time   = get_post_time( 'G', true, $post, false );
		if ( ( abs( $t_diff = time() - $time ) ) < DAY_IN_SECONDS ) {
			if ( $t_diff < 0 ) {
				$h_time = sprintf( __( '%s from now' ), human_time_diff( $time ) );
			} else {
				$h_time = sprintf( __( '%s ago' ), human_time_diff( $time ) );
			}
		} else {
			$h_time = mysql2date( __( 'Y/m/d' ), $m_time );
		}
	}

	echo $h_time;
}