WordPress at Your Fingertips
function is not described

WC_Log_Handler::format_time() protected WC 1.0

Formats a timestamp for use in log messages.

{} It's a method of the class: WC_Log_Handler{}

No Hooks.

Return

String. Formatted time for use in log entry.

Usage

$result = WC_Log_Handler::format_time( $timestamp );
$timestamp(int) (required)
Log timestamp.

Code of WC_Log_Handler::format_time() WC 5.8.0

protected static function format_time( $timestamp ) {
	return date( 'c', $timestamp );
}