bbp_convert_date( string $time, string $d = 'U', bool $translate = false )
Convert time supplied from database query into specified date format.
Description Description
Parameters Parameters
- $time
-
(Required) Time to convert
- $d
-
(Optional) Default is 'U'. Either 'G', 'U', or php date format
Default value: 'U'
- $translate
-
(Optional) Default is false. Whether to translate the
Default value: false
Return Return
(string) Returns timestamp
Source Source
File: includes/common/formatting.php
function bbp_convert_date( $time, $d = 'U', $translate = false ) { $new_time = mysql2date( $d, $time, $translate ); // Filter & return return apply_filters( 'bbp_convert_date', $new_time, $d, $translate, $time ); }
Changelog Changelog
Version | Description |
---|---|
2.0.0 | Introduced. |