Description
Conjure up a post_date based on the year, track number and duration
Usage
$string = oik_tunes_create_post_date( $result );Parameters
- $result
- ( mixed ) required –
Returns
string post date in format [ Y-m-d H:i:s ] //The time post was made.Source
File name: oik-tunes/admin/oik-tunes.phpLines:
1 to 13 of 13
function oik_tunes_create_post_date( $result ) { $year = $result['_oikt_year']; $mon = $result['_oikt_track']; if ( $mon > 12 ) { $mon = 12; } $day = $result['_oikt_track']; $minsec = $result['_oikt_duration']; $post_date = bw_format_date( "$year-$mon-$day 00:$minsec", "Y-m-d H:i:s" ); p( $post_date ); bw_trace2( $post_date, "post_date" ); return( $post_date ); }View on GitHub
Called by
1 to 2 of 2
Invoked by
Calls
1 to 2 of 2
Call hooks
API Letters:
