function bb_get_post_time($args = '') { $args = _bb_parse_time_function_args($args); $bb_post = bb_get_post(get_post_id($args['id'])); $time = apply_filters('bb_get_post_time', $bb_post->post_time, $args); return _bb_time_function_return($time, $args); }
/** * Get the date when current installation was created * * @since 0.8 * @uses $bbdb Database Object * @uses $bb_inception Result cache * * @param string|array $args Formatting options for the timestamp. * @return int */ function bb_get_inception($args = '') { $args = _bb_parse_time_function_args($args); global $bbdb, $bb_inception; if (!isset($bb_inception)) { $bb_inception = $bbdb->get_var("SELECT topic_start_time FROM {$bbdb->topics} ORDER BY topic_start_time LIMIT 1"); } return apply_filters('bb_get_inception', _bb_time_function_return($bb_inception, $args)); }