WC_Log_Handler::format_time()
Formats a timestamp for use in log messages.
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.
WC_Log_Handler::format_time() WC Log Handler::format time code WC 9.7.1
protected static function format_time( $timestamp ) { return gmdate( 'c', $timestamp ); }